Difference between revisions of "MySQL FAQ"
(12 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{archived}} | {{archived}} | ||
+ | |||
==What is SQL?== | ==What is SQL?== | ||
SQL stands for "Structured Query Language". SQL is the most common standardized language used to access databases. | SQL stands for "Structured Query Language". SQL is the most common standardized language used to access databases. | ||
Line 7: | Line 8: | ||
==What version of MySQL does XMission use?== | ==What version of MySQL does XMission use?== | ||
− | XMission currently has | + | XMission currently has a few versions of MySQL running. The current version is also displayed when you log in to the MySQL server. |
+ | Note: MySQL 5.0 and 4.1 are at the End of Product Lifecycle. All new databases will be created on the 5.1 MySQL server. | ||
==How much does a database at XMission cost?== | ==How much does a database at XMission cost?== | ||
− | If you have a | + | If you have a Select Hosting or Pro Hosting account, an SQL database is included in your account package. For any other account type, the charge is $5 per month. |
Line 19: | Line 21: | ||
==How do I log in to my database?== | ==How do I log in to my database?== | ||
− | |||
− | |||
− | For MySQL version 5. | + | We are in the process of migrating all of our database customers from our old mysql-55.xmission.com server to your Shared Hosting servers. In the coming months you may be notified regarding this process. |
+ | |||
+ | In the mean time if you need to access your database here are instructions, as our web interface is no longer in production. | ||
+ | |||
+ | *For MySQL version 5.1 the server name is ''mysql-51.xmission.com'' | ||
+ | *For MySQL version 5.5 the server name is "mysql-55.xmission.com" | ||
+ | |||
+ | <strike>To use a web interface to access your database, visit https://phpmyadmin.xmission.com/ </strike> | ||
− | + | '''NOTE''' ''' As noted above, the web interface is currently not working to connect to your database, use the below instructions.''' | |
To connect directly to the database from our shell server: | To connect directly to the database from our shell server: | ||
Line 31: | Line 38: | ||
#This will prompt you for a password, which is not necessarily the same as your login password. | #This will prompt you for a password, which is not necessarily the same as your login password. | ||
− | For example: to connect to a MySQL version 5. | + | For example: to connect to a MySQL version 5.1 database, you would use: |
− | <tt>mysql -u acctname -h mysql- | + | <tt>mysql -u acctname -h mysql-51.xmission.com -p databasename</tt> |
==What can I use to access my database?== | ==What can I use to access my database?== | ||
Line 61: | Line 68: | ||
==Can I use stored routines?== | ==Can I use stored routines?== | ||
− | Our MySQL 5. | + | Our MySQL 5.x servers support stored functions, procedures, triggers, and other such routines. Since it is a shared server, we do not allow users to create or edit their own routines. If you would like to have a routine installed, please contact support, providing a full copy of the routine you'd like installed. We will install the routine if we decide the code does not cause any problems or cause an unreasonable support burden. If you would like more complete control over database routines, please consider our [[VPS]] or [[Colocate]] products. |
==Where can I get more information about using MySQL?== | ==Where can I get more information about using MySQL?== | ||
Line 68: | Line 75: | ||
− | |||
[[Category:Hosting Archives|MySQL FAQ]] | [[Category:Hosting Archives|MySQL FAQ]] | ||
[[Category:FAQ|MySQL]] | [[Category:FAQ|MySQL]] |
Latest revision as of 15:45, 29 October 2021
Contents
- 1 What is SQL?
- 2 What version of MySQL does XMission use?
- 3 How much does a database at XMission cost?
- 4 How do I get a database set up for my account?
- 5 How do I log in to my database?
- 6 What can I use to access my database?
- 7 What do I do if I forgot my password?
- 8 Do I have a size limit (quota) for my database?
- 9 Can I use stored routines?
- 10 Where can I get more information about using MySQL?
What is SQL?
SQL stands for "Structured Query Language". SQL is the most common standardized language used to access databases.
XMission uses MySQL, which is a very popular open-source database management system.
What version of MySQL does XMission use?
XMission currently has a few versions of MySQL running. The current version is also displayed when you log in to the MySQL server.
Note: MySQL 5.0 and 4.1 are at the End of Product Lifecycle. All new databases will be created on the 5.1 MySQL server.
How much does a database at XMission cost?
If you have a Select Hosting or Pro Hosting account, an SQL database is included in your account package. For any other account type, the charge is $5 per month.
How do I get a database set up for my account?
To add a database to your account, either email support@xmission.com or contact sales.
How do I log in to my database?
We are in the process of migrating all of our database customers from our old mysql-55.xmission.com server to your Shared Hosting servers. In the coming months you may be notified regarding this process.
In the mean time if you need to access your database here are instructions, as our web interface is no longer in production.
- For MySQL version 5.1 the server name is mysql-51.xmission.com
- For MySQL version 5.5 the server name is "mysql-55.xmission.com"
To use a web interface to access your database, visit https://phpmyadmin.xmission.com/
NOTE As noted above, the web interface is currently not working to connect to your database, use the below instructions.
To connect directly to the database from our shell server:
- telnet or ssh to shell.xmission.com
- mysql -u acctname -h servername -p databasename
- This will prompt you for a password, which is not necessarily the same as your login password.
For example: to connect to a MySQL version 5.1 database, you would use: mysql -u acctname -h mysql-51.xmission.com -p databasename
What can I use to access my database?
There isn't a "recommended" method to access your database, but here is a list of the more popular programing languages connection methods which we support.
perl : DBI module
python : mysql module or MySQLdb module
php : php has been compiled with the mysql functions built in
C : The header and libraries for mysql are installed so #include <mysql/mysql.h> will need to be present in your source files.
C++ : same as C, but we also have mysql++ headers and libraries on XMission servers. To use this, #include <sqlplus>
Java : JDBC classes are available
What do I do if I forgot my password?
Email support@xmission.com to have your password reset.
Do I have a size limit (quota) for my database?
Yes. The size of your database counts against your /home quota, which is 100MB default for most account types. Pro Hosting accounts get 200MB /home storage, and additional storage can be purchased.
Can I use stored routines?
Our MySQL 5.x servers support stored functions, procedures, triggers, and other such routines. Since it is a shared server, we do not allow users to create or edit their own routines. If you would like to have a routine installed, please contact support, providing a full copy of the routine you'd like installed. We will install the routine if we decide the code does not cause any problems or cause an unreasonable support burden. If you would like more complete control over database routines, please consider our VPS or Colocate products.
Where can I get more information about using MySQL?
Thorough documentation can be found at MySQL.com.