<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=How_to_Create_a_Table_in_MySQL_Database</id>
		<title>How to Create a Table in MySQL Database - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=How_to_Create_a_Table_in_MySQL_Database"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_Create_a_Table_in_MySQL_Database&amp;action=history"/>
		<updated>2026-06-04T12:27:52Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_to_Create_a_Table_in_MySQL_Database&amp;diff=547&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==How to create a table in a MySQL database==  Now that you have created your database, you will need to add some tables.  Lets first log into mysql via the command line   mys...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_Create_a_Table_in_MySQL_Database&amp;diff=547&amp;oldid=prev"/>
				<updated>2014-03-12T20:30:31Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==How to create a table in a MySQL database==  Now that you have created your database, you will need to add some tables.  Lets first log into mysql via the command line   mys...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==How to create a table in a MySQL database==&lt;br /&gt;
&lt;br /&gt;
Now that you have created your database, you will need to add some tables.&lt;br /&gt;
&lt;br /&gt;
Lets first log into mysql via the command line&lt;br /&gt;
&lt;br /&gt;
 mysql -u &amp;lt;username&amp;gt; -p &lt;br /&gt;
 use &amp;lt;databasename&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now lets create the table, this is a simple table we use to track traffic on a site.&lt;br /&gt;
&lt;br /&gt;
 CREATE TABLE visitors (&lt;br /&gt;
 id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, &lt;br /&gt;
 browser VARCHAR(50),&lt;br /&gt;
 page VARCHAR(30),&lt;br /&gt;
 confirmed CHAR(1), &lt;br /&gt;
 signup_date DATE);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;sub&amp;gt;'''NOTE: MySQL does not terminate a command until you give a semicolon (;) at the end of SQL command.'''&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now lets check and confirm the table was inserted.&lt;br /&gt;
&lt;br /&gt;
 SHOW TABLES;&lt;br /&gt;
&lt;br /&gt;
If you want to see the structure of the table &lt;br /&gt;
&lt;br /&gt;
 DESCRIBE visitors;&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>