LEENTech Network Solutions Inc.

How can we help you today?

How do I create a MySQL database?

Modified on: Wed, Aug 26, 2015 at 3:52 PM

Overview

MySQL databases allow you to STORE lots of information in an
easy to access manner. The databases themselves are not easily read by
humans. MySQL databases are required by many web applications including
some bulletin boards, content management systems, and others. To use a
database, you'll need to CREATE it. Only MySQL Users (different
than mail or other users) that have privileges to access a database can
read from or write to that database.

There are two ways
to create a MySQL database The easiest way to create a MySQL database is
to use the MySQL Database Wizard built directly into the cPanel
interface. The second way involves a few more steps, but does not
require you to go through the wizard.

Create A MySQL Database Using The Wizard

Steps 1. When the page loads, ENTER the name of your new database in the "New Database" text box. 2. Next, CLICK on the Next Step button. 3. You should see the following statement: * "Added the database YOUR_DATABASE_NAME." 4. ENTER the username and password you want to use for this database in the "Username" and "Password" text boxes, respectively. 5. Next, CLICK on the "Next Step" button. 6. You should see the following statement: * "Added USERNAME with the password PASSWORD."
7. When the page loads you will see a two-column table. The top of the
table provides a checkbox option "ALL PRIVILEGES" allowing you to CREATE the database with all privileges, otherwise you can CHECK each of the items in the two columns that you want to allow for your new database. The options include:

* SELECT - Allows USERNAME to SELECT data from a table in the database. * INSERT - Allows USERNAME to INSERT data into a table in the database. * UPDATE - Allows USERNAME to UPDATE data in a table in the database. * DELETE - Allows USERNAME to DELETE data from a table in the database. * INDEX - Allows USERNAME to CREATE index on table column in the database. This can speed up a database. * CREATE TEMPORARY TABLES - Allows USERNAME to CREATE temporary tables in the database. * CREATE - Allows USERNAME to CREATE tables in the database. * ALTER - Allows USERNAME to ALTER tables in the database. * DROP - Allows USERNAME to DROP tables in the database. * LOCK TABLES - Allows USERNAME to LOCK tables in the database. * REFERENCES - Allows USERNAME to CREATE references to a table in the database.