Jump to main contentmickwood.com - Website Hosting & Design for Christian Organisations
Support

"If we don't know it's broken we can't fix it!"

Support FAQ Homepage

Can't find the answer?

Database Questions

1. Limitations & other information
2. How do I convert a Microsoft Access database to a MySQL database?
3. Connecting to mySQL through PHP
4. Is my MySQL database backed up with my web site data every night?
5. Connecting to mySQL through Perl using the mySQL Perl Module.
6. Creating / Deleting / Editing Databases & Users


1. Limitations & other information

The following limitations are currently effective 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.

Back to top


2. How do I convert a Microsoft Access database to a MySQL database?

There is a program that will help you convert databases. It is available from:

http://www.cynergi.net/exportsql/

Back to top


3. Connecting to mySQL through PHP

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 from localhost.

1. Connect To The mySQL Server
Use the following statement to connect to the database server. Substitute the username and password for your own.
MYSQL_CONNECT ('localhost','USERNAME','PASSWORD');

2. Select Your Database
Use the following statement to select the database you wish to connect to. Make sure you insert the correct database name.
@mysql_select_db("DBASENAME");

Back to top


4. Is my MySQL database backed up with my web site data every night?

Unfortunately MySQL databases can not be backed up unless the MySQL server is turned off or tables will become corrupted in the databases.

It is suggested that you keep a backup of your database by doing a dump of the database with the structure and data. This can be done with the online MySQL editor that is installed with each database. If you need any help with this please email enquiries@mickwood.com

Back to top


5. Connecting to mySQL through Perl using the mySQL Perl Module.

Use the following outline to connect and begin querying the mySQL server from a Perl script. Remember that you cannot connect to your databases remotely due to security concerns, you can only connect from localhost.

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
Some where 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. The database must be a valid one that you have created.
Mysql-> connect ('localhost','DBASENAME','USERNAME','PASSWORD');

3. Executing A Query
You are now ready to begin querying the database server. Most problems that you may incur will generally occur due to syntax errors.

Back to top


6. Creating / Deleting / Editing Databases & Users

To create or delete a database or user e-mail enquiries@mickwood.com with the name of your database, username and password. You can administrate your MySQL database through a web based interface which we install when we create the database for you.

Back to top


welcome | name | hosting | design | content | promote | update | showcase
about us | general | articles | accessibility | sitemap | enquiries | feedback | training | consultancy

Showcase Update Promote Content design Hosting Name Welcome