Creating a MySQL database with phpMyAdmin

From Tech-Help

Jump to: navigation, search

Creating a MySQL database with phpMyAdmin is easy, but there are a few tricks to know in the sequence of creation that will make your life easier.

Contents

1. Select Privileges

Image:Phpmyadmin privileges-link.png

2. Create a new user

On the User Overview page, scroll down and click on the "Add a new user" link.

Image:PhpMyAdmin addnewuser1.png

  • Use the same name as the database you want to create, at the host localhost
  • When entering the password, do NOT click "Generate Password".

Image:PhpMyAdmin addnewuser2.png

3. Create database

  • Check "Create database by the same name"

Image:PhpMyAdmin addnewuser3.png

4. Set Privileges

  • For global privileges, check all the Data and Structure privileges.
  • Leave the Administration privileges unchecked -- these should be reserved for only users who administrate databases across the entire MySQL installation.

Image:PhpMyAdmin addnewuser4.png

5. Create Everything

  • Click the "Go" button on the lower right of the page.
  • Return to the User overview page and click on the "Reload privileges" link on the main page.
Personal tools
Help