Creating mysql Databases
From the main control panel menu click the "MySQL Databases" icon
and then click the "Create new Database" link.
Choose a Database Name that helps you remember what the database
is for. For example, enter "customers" if the database is intended
to be used for a base of customers. The database name is always
preceded by your username and an underscore. If you chose "customers" for
a name, the actual database name would be username_customers.
The Database Username is the login name for the database. It
may be the same as the Database Name. In the above example, we
chose a different login name (gary). As with the Database Name,
the Database Username is also preceded by your username and an
underscore (username_gary in this case).
After you have selected the database name and username, enter
a database password and click the "Create" button.
Removing mysql Databases
A list of all databases is present in the main MySQL databases
menu. To delete a database, check the box next to the database
name you want to delete and then click the "Delete Selected" button.
In the above example, we are deleting the database named username_data1.
Adding Users to a mysql Database
There may be times when you want to have more than one login name
and password assigned to a database. To add additional users to
a database, follow these steps:
1. From the main database menu, click on the name of the database
you want to modify.
2. Click on the "Create New Database User" link at the top of
the screen..
3. Enter a username and password and then click the "Create" button.
You can see how many users each database has from the main MySQL databases menu.
Removing Users from a mysql Database
To remove database users, first click on the database name from
the main MySQL databases menu.
In this example we have clicked on the "username_chat" database,
which has two users (see above picture).
The username_chat database has two users: username_chat (the username
is the same as the database name) and username_gary2.
To delete the database user, simply check the box next to its
name and click the "Delete Selected" button.
Changing mysql Database Passwords
To change a database password, first click on the name of the
database in the main MySQL databases menu, click on the data base
name and the list of the database users will appear (see above
picture).
To change the password for the database user, click the "modify" link
and enter a new password, then click the "Create" button.
You do not need to know the old password to make this change.
Inserting fields into the mysql Database
After you have already created a database (through Mysql DataBases), you can manage it through
.
Setting up your mysql Database with Scripts
Most scripts need to know four things about your database: the
database name, database username, password, and hostname.
The database name is ControlPanelUsername_DatabaseName,
where ControlPanelUsername is the sign in name you use to access
the control panel.
The DatabaseName is the name you give to the database
from the MySQL databases menu. For example, if you sign into the
control panel as "gary" and create a database named "count," the
true database name is gary_count.
The datatbase username can be the same as the database
name or you may choose a different username for the database. The
database username takes the form of ControlPanelUsername_DatabaseUserName.
The datatbase password is set during database creation.
The password should be different than your control panel password.
The script will need to know the database password in order to
modify the database.
The datatbase hostname tells the script where to access
the database. Usually this is designated as 'localhost' because
the script and database are located on the same server. If the
script doesn't allow a text entry in the hostname configuration,
enter the IP address of your site.
Note:After you create a database, the control panel will
take you to a screen that gives you all this information. Simply
take the values from this page and enter them into your script
configuration.
|