MySQL

MySQL is one of the most common database applications in use for web hosting. If your site needs a database, this is what you need.

Installing MySQL

For installation instructions, please click here.

Using MySQL Database

While we provide installation support for MySQL to the point of verifying that it is running properly, we are unable to troubleshoot problems with MySQL. If you become aware of a problem with MySQL through their mailing lists or otherwise, please let us know and we will work with you to resolve it. MySQL has a free online manual for your use at http://www.mysql.com/doc/en/index.html.

If you have questions about MySQL and its use, we recommend you use their mailing lists, which are at http://www.mysql.com/documentation/lists.html.

We want to make sure that your experience with us is as good as it possibly can be. With that in mind, we hope you understand that we also have limitations in resources and knowledge that prevent us from being able to support third party software (as complex as this) as well as you may need it to be. This is why we ask you first use the above references for troubleshooting any problems you may have; if you are still having problems, contact us for help in fixing the problem.

MySQL Database Backup & Restore

If your Web site is using application relying on MySQL, or if you have created personal databases using MySQL, you should backup each database to avoid data loss.

Backing Up MySQL Databases

Below are two different methods of backing up your data:

Restoring MySQL Databases

Below are two different methods of backing up your data:

MySQL FAQ

1. What are the telnet (SSH) commands to access MySQL?
Use the following outline to connect and begin querying the MySQL server from a Telnet.

NOTE: By default you cannot connect to your databases remotely due to security concerns (you can only connect from localhost). If you need to connect remotely (only available with dedicated IP accounts), you will need to create (or modify) a user and either leave the 'host' column blank or enter in your own IP address (or host name obtained from reverse DNS lookup)

  1. Connect to the MySQL Server servername:> mysql -u USERNAME -p
  2. Enter Password: PASSWORD
  3. Connect to the Database mysql> use DATABASENAME
  4. Receiving Help mysql> help

2. How do I connect to MySQL through PHP?
http://us.php.net/mysql.

3. How do I connect to MySQL using the MySQL Perl Module?
Use the following outline to connect and begin querying the MySQL server from a Perl script.

NOTE: By default you cannot connect to your databases remotely due to security concerns (you can only connect from localhost). If you need to connect remotely (only available with dedicated IP accounts), you will need to create (or modify) a user and either leave the 'host' column blank or enter in your own IP address (or host name obtained from reverse DNS lookup)

  1. Declarations. You must require the MySQL package for your script to function properly. Do this by including the following line in your code: use Mysql;
  2. Connect To The Database. Somewhere near the beginning of your script, you need to make your initial connection to the database server. Using the following form, substitute your database, username, and password for the examples to connect successfully.

Mysql->connect('localhost','DATABASENAME','USERNAME','USERPASSWORD');

  1. Execute a Query. You are now ready to begin querying the database server. Most problems that you may incur will generally occur due to invalid permission settings for the specified user.

4. Can I use ODBC with MySQL?
At this time, we do not support ODBC.

5. Can I use JDBC with MySQL?
At this time, we do not support JDBC.

6. Can I remotely connect to my MySQL database?
You can choose in your site manager whether or not you would like to have MySQL listen for connections other than local (enable "TCP/IP Connection:" in your MySQL configuration in the Site Applications). It is set to off by default due to security concerns.