Bluehost Web Hosting Help
MySQL Database and user name convention
I cannot connect to my database locally or remotely, do I have the correct server, username and password?
Since we run a shared hosting environment, we uniquely identify your MySQL users to your account ONLY. We do this by attaching your system's username and an underscore("_") before all the MySQL databases and MySQL users YOU create.
In creating a New Database, you enter "db01"This applies to both your database name and database user, your password stays normal or is not pre-pended like the name or user.
The real database name: username_db01.
Things to keep in mind:
Database Server/Host Address:
- Your MySQL User can only be up to 7 characters long.
- You also need to remember to add your MySQL User to your database after the two are created.
If your script or program is going to be accessing our database locally, meaning script and database are on same account, the server/host address will always be: localhost, just like that, lowercase and one word.
If you are using Remote Database Management Software, the server would either be your domain name: example.com or the Shared Server IP (preferred choice). The shared server IP is found in the Stats section of the cPanel on left side.
Recommended Help Content
Setting a Password for the Main MySQL User
I am prompted to set a new MySQL password. What does this mean and how do I change it? (updated 1094 days ago)
Resetting MySQL Database User and Password
This article will explain how to change the password for a database in the event that the original password is lost. (updated 947 days ago)
Change a MySQL Users Password
This article will explain how to change or reset the password for a MySQL user. (updated 68 days ago)
Related Help Content
How to Create and Delete MySQL Databases and Users
This article will explain MySQL database and user creation and deletion, and explain how to assign a user to a database. (updated 12 days ago)
Connecting to your MySQL DB from Dreamweaver
How can I connect to our MySQL database from Dreamweaver? (updated 1160 days ago)
MySQL Database Access Outside of cPanel
How do I grant permissions to cPanel for my MySQL database administrator without giving them the domain password? (updated 2149 days ago)
Connecting Scripts to MySQL Databases
This article will explain how to connect your scripts to your MySQL databases. (updated 947 days ago)
MySQL Database Compatibility
How do I make my MySQL database compatible with the version you provide? (updated 2151 days ago)
How To Convert a MySQL Database to UTF-8
This article will explain how to convert a MySQL database to UTF-8. (updated 51 days ago)
How to import a MySQL Database using phpMyAdmin
How do I import a backup of my database (.sql file) using phpMyAdmin? (updated 121 days ago)
Local MySQL Connection Blocked To Server
I get the following database connection error: Warning: mysql_connect() [function.mysql-connect]: Host 'host#.BlueHost.com' is blocked because of many connection errors; unblock with 'mysqlad (updated 122 days ago)