{"id":472,"date":"2019-02-23T08:31:54","date_gmt":"2019-02-23T08:31:54","guid":{"rendered":"https:\/\/shujaahost.co.ke\/blog\/?p=472"},"modified":"2019-02-23T08:50:24","modified_gmt":"2019-02-23T08:50:24","slug":"creating-tables-in-a-database-with-phpmyadmin","status":"publish","type":"post","link":"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/","title":{"rendered":"Creating tables in a database  with phpMyAdmin"},"content":{"rendered":"\n<p>This tutorial will take you through the steps to follow for creating a table in a database using phpMyAdmin in cPanel. I&#8217;m assuming that you have already <a href=\"https:\/\/shujaahost.co.ke\/blog\/how-to-create-a-database-in-cpanel\/\">created your database<\/a>.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Create a table:<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"https:\/\/shujaahost.co.ke\/clientarea\/knowledgebase.php?action=displayarticle&amp;id=4\">Log into cPanel<\/a> account.<\/li><li>Click on phpMyAdmin in the <strong>DATABASES <\/strong>section. You can also type phpMyAdmin in the search box to filter the contents of the screen easily.<\/li><li>A new browser tab will open.<\/li><li>Click on the <strong>database <\/strong>you had <a href=\"https:\/\/shujaahost.co.ke\/blog\/how-to-create-a-database-in-cpanel\/\">created <\/a>earlier from the left navigation pane.<\/li><li>Since your database does not have a table, phpMyAdmin will automatically take you to &#8220;<strong>create table<\/strong>&#8221; page.<\/li><li>Type the name of the table and specify the number of columns needed.<\/li><li>Indicate column names, data types and lengths as needed. More about MySql data types can be found from their <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/data-types.html\">official documentation<\/a>.<\/li><li>Set the primary key.<\/li><li>Specify the storage engine. <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/faqs-storage-engines.html\">Read more about MySql storage engines from the official website<\/a>.<\/li><li>Click on Save once you&#8217;re through.<\/li><li><\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">How to copy a table from another database in phpMyadmin<\/h2>\n\n\n\n<p>If you already have your table&#8217;s structure definition in a different database, then you can easily copy it.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>From the left navigation pane in phpMyAdmin, select the database that has the table structure.<\/li><li>Select the table by clicking on it.<\/li><li>Click on options from the tabs at the top.<\/li><li>In the <strong>Copy table to (database.table): <\/strong>section, select the target database.<\/li><li>Type the name for the new table or you can leave it as it is.<\/li><li>Specify whether you need both the structure and data or just the  structure  alone and if you need to switch to the copied table.<\/li><li>Click on Go button to start the process.<\/li><li><strong>phpMyAdmin <\/strong>will notify you once the process has finished.<\/li><\/ol>\n\n\n\n<p><strong><em>Note: You can also export the table and import it into the target database.<\/em><\/strong><br><\/p>\n\n\n\n<p>There you go, you have just learnt how to create and copy a table in phpMyAdmin. Drop us your comments and suggestions in the comments area and we&#8217;ll be glad to know of what you think.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will take you through the steps to follow for creating a table in a database using phpMyAdmin in cPanel. I&#8217;m assuming that you have already created your database. Create a table: Log into cPanel account. Click on phpMyAdmin in the DATABASES section. You can also type phpMyAdmin in the search box to filter ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,7],"tags":[],"class_list":["post-472","post","type-post","status-publish","format-standard","hentry","category-databases","category-phpmyadmin"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Creating tables in a database with phpMyAdmin - Shujaa Host<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating tables in a database with phpMyAdmin - Shujaa Host\" \/>\n<meta property=\"og:description\" content=\"This tutorial will take you through the steps to follow for creating a table in a database using phpMyAdmin in cPanel. I&#8217;m assuming that you have already created your database. Create a table: Log into cPanel account. Click on phpMyAdmin in the DATABASES section. You can also type phpMyAdmin in the search box to filter ..Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/\" \/>\n<meta property=\"og:site_name\" content=\"Shujaa Host\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/shujaahostKenya\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-23T08:31:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-02-23T08:50:24+00:00\" \/>\n<meta name=\"author\" content=\"Mike\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@shujaahost_ke\" \/>\n<meta name=\"twitter:site\" content=\"@shujaahost_ke\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mike\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/\"},\"author\":{\"name\":\"Mike\",\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/#\/schema\/person\/663b69c8fe6b606af1e68eee6f46249f\"},\"headline\":\"Creating tables in a database with phpMyAdmin\",\"datePublished\":\"2019-02-23T08:31:54+00:00\",\"dateModified\":\"2019-02-23T08:50:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/\"},\"wordCount\":339,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/#organization\"},\"articleSection\":[\"Databases\",\"phpMyAdmin\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/\",\"url\":\"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/\",\"name\":\"Creating tables in a database with phpMyAdmin - Shujaa Host\",\"isPartOf\":{\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/#website\"},\"datePublished\":\"2019-02-23T08:31:54+00:00\",\"dateModified\":\"2019-02-23T08:50:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/shujaahost.co.ke\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating tables in a database with phpMyAdmin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/#website\",\"url\":\"https:\/\/shujaahost.co.ke\/blog\/\",\"name\":\"Shujaa Host\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/shujaahost.co.ke\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/#organization\",\"name\":\"Shujaa Host\",\"url\":\"https:\/\/shujaahost.co.ke\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/shujaahost.co.ke\/blog\/wp-content\/uploads\/2018\/10\/new-logo3-e1550211460915.png\",\"contentUrl\":\"https:\/\/shujaahost.co.ke\/blog\/wp-content\/uploads\/2018\/10\/new-logo3-e1550211460915.png\",\"width\":911,\"height\":770,\"caption\":\"Shujaa Host\"},\"image\":{\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/shujaahostKenya\/\",\"https:\/\/x.com\/shujaahost_ke\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/#\/schema\/person\/663b69c8fe6b606af1e68eee6f46249f\",\"name\":\"Mike\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/shujaahost.co.ke\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/179418316e42215939b8f01eb824243c?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/179418316e42215939b8f01eb824243c?s=96&r=g\",\"caption\":\"Mike\"},\"url\":\"https:\/\/shujaahost.co.ke\/blog\/author\/mike\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating tables in a database with phpMyAdmin - Shujaa Host","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/","og_locale":"en_US","og_type":"article","og_title":"Creating tables in a database with phpMyAdmin - Shujaa Host","og_description":"This tutorial will take you through the steps to follow for creating a table in a database using phpMyAdmin in cPanel. I&#8217;m assuming that you have already created your database. Create a table: Log into cPanel account. Click on phpMyAdmin in the DATABASES section. You can also type phpMyAdmin in the search box to filter ..Read more","og_url":"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/","og_site_name":"Shujaa Host","article_publisher":"https:\/\/www.facebook.com\/shujaahostKenya\/","article_published_time":"2019-02-23T08:31:54+00:00","article_modified_time":"2019-02-23T08:50:24+00:00","author":"Mike","twitter_card":"summary_large_image","twitter_creator":"@shujaahost_ke","twitter_site":"@shujaahost_ke","twitter_misc":{"Written by":"Mike","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/#article","isPartOf":{"@id":"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/"},"author":{"name":"Mike","@id":"https:\/\/shujaahost.co.ke\/blog\/#\/schema\/person\/663b69c8fe6b606af1e68eee6f46249f"},"headline":"Creating tables in a database with phpMyAdmin","datePublished":"2019-02-23T08:31:54+00:00","dateModified":"2019-02-23T08:50:24+00:00","mainEntityOfPage":{"@id":"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/"},"wordCount":339,"commentCount":0,"publisher":{"@id":"https:\/\/shujaahost.co.ke\/blog\/#organization"},"articleSection":["Databases","phpMyAdmin"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/","url":"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/","name":"Creating tables in a database with phpMyAdmin - Shujaa Host","isPartOf":{"@id":"https:\/\/shujaahost.co.ke\/blog\/#website"},"datePublished":"2019-02-23T08:31:54+00:00","dateModified":"2019-02-23T08:50:24+00:00","breadcrumb":{"@id":"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/shujaahost.co.ke\/blog\/creating-tables-in-a-database-with-phpmyadmin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/shujaahost.co.ke\/blog\/"},{"@type":"ListItem","position":2,"name":"Creating tables in a database with phpMyAdmin"}]},{"@type":"WebSite","@id":"https:\/\/shujaahost.co.ke\/blog\/#website","url":"https:\/\/shujaahost.co.ke\/blog\/","name":"Shujaa Host","description":"","publisher":{"@id":"https:\/\/shujaahost.co.ke\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/shujaahost.co.ke\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/shujaahost.co.ke\/blog\/#organization","name":"Shujaa Host","url":"https:\/\/shujaahost.co.ke\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/shujaahost.co.ke\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/shujaahost.co.ke\/blog\/wp-content\/uploads\/2018\/10\/new-logo3-e1550211460915.png","contentUrl":"https:\/\/shujaahost.co.ke\/blog\/wp-content\/uploads\/2018\/10\/new-logo3-e1550211460915.png","width":911,"height":770,"caption":"Shujaa Host"},"image":{"@id":"https:\/\/shujaahost.co.ke\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/shujaahostKenya\/","https:\/\/x.com\/shujaahost_ke"]},{"@type":"Person","@id":"https:\/\/shujaahost.co.ke\/blog\/#\/schema\/person\/663b69c8fe6b606af1e68eee6f46249f","name":"Mike","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/shujaahost.co.ke\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/179418316e42215939b8f01eb824243c?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/179418316e42215939b8f01eb824243c?s=96&r=g","caption":"Mike"},"url":"https:\/\/shujaahost.co.ke\/blog\/author\/mike\/"}]}},"_links":{"self":[{"href":"https:\/\/shujaahost.co.ke\/blog\/wp-json\/wp\/v2\/posts\/472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shujaahost.co.ke\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shujaahost.co.ke\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shujaahost.co.ke\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shujaahost.co.ke\/blog\/wp-json\/wp\/v2\/comments?post=472"}],"version-history":[{"count":7,"href":"https:\/\/shujaahost.co.ke\/blog\/wp-json\/wp\/v2\/posts\/472\/revisions"}],"predecessor-version":[{"id":482,"href":"https:\/\/shujaahost.co.ke\/blog\/wp-json\/wp\/v2\/posts\/472\/revisions\/482"}],"wp:attachment":[{"href":"https:\/\/shujaahost.co.ke\/blog\/wp-json\/wp\/v2\/media?parent=472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shujaahost.co.ke\/blog\/wp-json\/wp\/v2\/categories?post=472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shujaahost.co.ke\/blog\/wp-json\/wp\/v2\/tags?post=472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}