Everything PHP: Creating a Database

Posted on July 1st, 2009

Everything PHP

Now that we have gone over database structures and field types, we can finally create our database. Once we have created our database, we can begin to go over how to interact with the MySQL server using PHP.

The process to create a database will vary depending on your host. However, the basic premise is the same. You create a database along with a MySQL username and password (choose a strong, randomized password). You then associate the MySQL user with the database. Once you have done that, you MySQL database now exists.

However, your database is basically useless, as you currently have no structure to store any data in. To begin adding in your structure, you’ll have to move over to a different tool, which is usually phpMyAdmin. Once you’re in phpMyAdmin, you can begin creating tables and fields in your database.

If you ever get stuck on what field type you should use, refer to the MySQL documentation for an explanation. Get your database all setup and ready for next week, when we’ll be getting into the integration between PHP and MySQL.

Posted in Development | | | Digg This | del.icio.us | Technorati


Related Topics:
Everything PHP: Connecting to MySQL
Everything PHP: Introduction to Database Structures
Everything PHP: Connecting to MySQL
WordPress Development: Database Calls
Everything PHP: Introduction to MySQL

RSS feed

2 Comments

Gravatar
Comment by Minnesota Attorney
2009-07-01 08:13:14

phpMyAdmin is outstanding software. It makes managing MySQL possible for people with limited technical skills.

 
Gravatar
Comment by data recovery software Subscribed to comments via email ~ come follow me on twitter @kmadhav
2009-07-01 22:40:05

I’m trying to create a simple search form that will search my databases table columns, and return and display rows that match the search criteria. Kinda like searching an address book. Any ideas??

 

Sorry, the comment form is closed at this time.

© 2007 BlueFur Hosting | Privacy Policy
Theme by Unique Blog Designs