MySQL Databases


MySQL is a popular database management system. It allows you to add, access, and process stored data. This document will guide you through:


Creating MySQL Databases and Users

MySQL users cannot exist separately from MySQL databases. You must stick to the following sequence:

However, MySQL users can be shared by different databases.

To create a MySQL database, do the following:

NOTE:
Starting from version 2.3.1, new MySQL databases are created with the username_ prefix, where username is a unique identifier that contains either first letters of the name of an account under which this database is created, or that account name's first letters and a unique number if there are several account names starting with the same letters. This is done to prevent the creation of databases with the same name under different users.


Editing MySQL databases (phpMyAdmin)

You can edit the content of your databases using the phpMyAdmin utility that comes with your control panel. To run phpMyAdmin, do the following:

  1. Click MySQL Server on your control panel home page.
  2. In the form that appears, click the name of the existing MySQL Database you want to edit or the Edit icon on its right:

  1. In the form that appears, click Built in phpMyAdmin control panel to start editing your database:

  1. Follow the instructions of the phpMyAdmin control panel to edit your MySQL DB.


Changing MySQL Disk Quota

MySQL disk quota is the maximum allowed size of one MySQL database. If you exceed this quota, you'll be charged for overlimit at a different (usually higher) price.

To change MySQL disk quota, do the following:

  1. Click MySQL Server on your control panel home page.
  2. Click the MySQL Database or the Edit icon on its right:
  3. Click the Change button against the Quota field:

  1. Enter the new quota.
  2. Click Submit.
  3. Agree to additional charges.


Changing User Passwords

To change user password in the MySQL database, do the following:

  1. Click the MySQL Database
  2. In the form that appears (see above), click the Change password icon next to the DB user.


Granting User Privileges

Here you will learn how to add new users to an existing MySQL database.

Each user role involves a fixed set of privileges on this specific database:

Role:

Set of privileges:

read select
read/write select, insert, delete, update
dba select, insert, update, drop, create, alter, index

Note:For more information on MySQL access privileges, please refer to www.mysql.com.

IMPORTANT: any changes in user privileges will be applied to the whole selected database.


Related Documents:

© Copyright 1998-2003. Positive Software Corporation.
All rights reserved.