How to create a database table

m
m
 
Line 1: Line 1:
<div align=justify>cPanel allows you to manage your databases using phpMyAdmin tool. You can create a database, modify or remove it; create a database table; repair and optimize MySQL tables, etc. In this tutorial we'll let you know how to create a database table using phpMyAdmin.
+
<seo title="How to create a database table" metakeywords="database table,create database table,new table,create sqltable" metadescription="How to create a database table" />
  
First, log into your '''cPanel => [[Databases]] => phpMyAdmin'''. From the left-side list choose the database you wish to add a table for.
+
<div align=justify>All [http://myidealhost.com/hosting.shtml web hosting plans] provided by [http://myidealhost.com/ MyIdealHost] provides cPanel and it includes the database management application called phpMyAdmin. You can create tables, modify content of the databases, remove it, repair and optimize MySQL tables, etc. In this tutorial we'll let you know how to create a database table using phpMyAdmin.
 +
 
 +
First, log into your '''cPanel => [[Databases]] => phpMyAdmin'''. From the left-side list choose the database you wish to add a new sql table for.
  
 
  {{#icon: phpMyAdmin.png|phpMyAdmin}}
 
  {{#icon: phpMyAdmin.png|phpMyAdmin}}
  
To create the database table, enter the desired table name and the number of fields at the bottom of the page. Click '''Go''' to create the table.
+
To create the database table, enter the desired table name and the number of fields at the bottom of the page. Click '''Go''' to create the new table.
  
 
  {{#icon: new table.png|create a database table}}
 
  {{#icon: new table.png|create a database table}}
Line 31: Line 33:
 
You can choose the following attributes:
 
You can choose the following attributes:
  
'''''BINARY''''' - the field collation will be binary, e.g. ''utf8_bin'';
+
'''''BINARY''''' - the field collation will be binary, e.g. ''utf8_bin'';
  
'''''UNSIGNED''''' -  the database table field will have positive or 0 numeric  
+
'''''UNSIGNED''''' -  the database table field will have positive or 0 numeric values;
values;
+
  
'''''UNSIGNED ZEROFILL''''' - the field will have positive or 0 numeric values  
+
'''''UNSIGNED ZEROFILL''''' - the field will have positive or 0 numeric values and leading zeros will be added to a number;
and leading zeros will be added to a number;
+
  
'''''ON UPDATE CURRENT_TIMESTAMP''''' - the current timestamp is the default  
+
'''''ON UPDATE CURRENT_TIMESTAMP''''' - the current timestamp is the default value for the data type field, and is automatically updated;
value for the data type field, and is automatically updated;
+
  
 
* '''Null'''
 
* '''Null'''
Line 63: Line 62:
  
  
Now you know how to create a database table and use the above steps to manage your MySQL databases.</div>
+
Now you know how to create a database table and can add new sql tables to any MySQL database under your account.</div>

Latest revision as of 13:30, 29 October 2012

rss feed for my website