|
||
Using MySQL
The MySQL database server is a very robust, SQL based platform
that is provided for use with the standard or higher plans. It is often
utilized as a data source for web sites requiring dynamic content.
The languages most often used to interface with the database server
are Perl and PHP, however, C, C++, and Python among others may also be
used. The official MySQL Web site is located
at: http://www.mysql.com/ Creating/Deleting/Editing Databases and Users All administration of your MySQL databases
and users can be done through our convenient web based phpMyAdmin interface. This program is provided to all of
our Web hosting customers. It is available in your Control Panel
(CP). For help with this tool check out the phpMyAdmin documentation Use the following outline to connect and begin
querying the MySQL server from a Telnet
session.
1. Connect To The MySQL Server
Use the following outline
to connect and begin querying the MySQL server
from a Perl
script. 1. Declarations 2. Connect To The Database 3. Executing A Query Use the following outline to connect and begin
querying the MySQL server from within your
PHP scripts. Remember that you cannot connect to your databases remotely
due to security reasons. You can only connect to them form local
host. 1. Connect to the MySQL server 2. Select Your Database 3. Executing A Query Restrictions and other
information The following restrictions are currently affective
regarding all of our web hosting accounts: 1. You cannot connect to any of your databases from remote hosts. This
limitation is due to security concerns. For now you may only connect
from localhost. 2. You may not utilize the data-infile data-outfile functions
of the MySQL server. This is due to security
reasons. The
Official MySQL Documentation The official MySQL documentation
may be found at: http://www.mysql.com/ Other useful information about MySQL may be found at the following locations: Backing up a MySQL Database There
are two main ways to back up or restore a MySQL database
on our servers: via SSH Telnet access or the phpMyAdmin interface. If you
need SSH Telnet access, just send us a ticket with your request to
be enabled for it, though we reserve the rights to accept or decline
any request for Telnet/SSH access. To access the phpMyAdmin interface,
click on the "mySQL Databases" link
and then "phpMyAdmin" on your control
panel. How to
back up a mySQL database using SSH Telnet: Log into
your account on our server and issue the following command:
$ indicates
a variable, so instead of entering $user, you'll enter your actual
user name for your account. Your mySQL username
and password are usually the same as the ones that you use to access
your control panel. For example,
your actual command might look like this:
How
to restore a mySQL database using SSH
Telnet: Log into
your account on our server and issue the following command: [This is all one command line!]
How
to back up a mySQL database using phpMyAdmin: Click
on your database name shown on the upper left. Go
to the section called "View dump (schema) of database" and choose
options for backing up structure only, structure and data, or adding
drop tables. To view what your backup file will look like, click on
the "Go" button. When you're ready to send your back up to
a file, check the send box and click "Go", then follow the
prompts for how to name the file and where to send it. How
to restore a mySQL database using phpMyAdmin: Click
on your database name shown on the upper left. Locate
your back up file for the database that you want to restore. Open it
and copy the entire contents. Paste
into the field called "Run SQL query/queries on database yourdomain_com" and
click the "Go" button.
| ||
This web site is best viewed
in 1024 x 768 screen resolution |