|

Database
Manager
|
SQL stands for Structured Query Language. SQL is an international standard in querying and retrieving information from databases. MySQL is essentially an SQL server - it responds to requests for information that are written in SQL. You can communicate with MySQL using a wide variety of programming languages (PHP being one of the most common). MySQL is Open Source software and free for use.
Refer to the following links for more information about MySQL:
- www.mysql.com
- The MySQL homepage.
- MySQL and PHP tutorial - A good introduction to using the two Open Source technologies together.
To create a MySQL database:
- Click on the MySQL databases icon in your Control Panel.
- Enter the name of the database in the Db field.
- Click on the Add Db button. The database will be added to the
/var/lib/mysql folder.
You need to create at least one database user and grant that user permission to use the new database. Refer to
Creating a MySQL user and Grant a user's permissions to a MySQL
database for more information.
Topics:
Removing a database
Creating a MySQL user
Grant a user's permissions to a MySQL database
Managing MySQL databases
Adding host access
Removing a database
Removing a database will delete that database from its online location. Be sure that you have saved a copy of the database if you want to keep any of the information in the database. Removing a database will not remove any user's but it will remove all user's permissions to that database.
To remove a database:
- Click on the MySQL databases icon in your Control Panel.
- Click on the Delete button next to the specific database.
Creating a MySQL user
You need to create a MySQL user before that user is able to use the database. This does not automatically allow the user to use a database - you need to grant that user permission to the specific database first. Refer to Grant a user's permissions to a MySQL database for more information.
To create a MySQL user:
- Click on the MySQL databases icon in your Control Panel.
- Enter the user's name in the UserName field and the user's password in the
Password field.
- Click on the Add User button.
Grant a user's
permissions to a MySQL database
Once you have created a user to use a database you need to grant that user permission to use the database. If you have not yet created a user, refer to Creating a MySQL user for more information.
To grant user permissions to a MySQL database:
- Click on the MySQL databases icon in your Control Panel.
- Choose the specific user from the User drop-down list and the specific database to grant permissions to from the
Db drop-down list.
- Click on the Add User to Db button. The user now has permission to use that database and sample connection strings are shown in the MySQL window.
Managing MySQL databases
CPanel includes a web-based MySQL management tool called phpMyAdmin. This tool allows you to manage all aspects of your database structure and data. Refer to the
phpMyAdmin documentation link, which is http://yourURL/3rdparty/phpMyAdmin/Documentation.html, if you need to know more about using phpMyAdmin.
To manage MySQL databases using phpMyAdmin:
- Click on the MySQL databases icon in your Control Panel.
- Click on the phpMyAdmin link at the base of the window. Refer to the
phpMyAdmin documentation link, which is http://yourURL/3rdparty/phpMyAdmin/Documentation.html, if you need to know more about using
phpMyAdmin.
Adding host access
You can allow external web servers to access your MySQL databases by adding their domain name to the list of hosts that are able to access databases on your web site. localhost stands for your own web server.
To add host access:
- Click on the MySQL databases icon in your Control Panel.
- Enter the domain name or IP number of the host that you wish to add in the
Host field.
- Click on the Add Host button.
|