Creating a MySQL Database

From Web Developer Network Wiki
Jump to: navigation, search

First, create a database and a table to hold the data:

  • Go to and log in
  • Choose a database (or create a new one) and create a new table.
  • Define the fields you want for your form, with a primary key (normally an int field called 'id', auto-increment, primary key).

  • Establish a unique user with a password to access the database (this is important for security reasons).

After your database and table are created, create the necessary files for connecting to the database in PHP.

Personal tools