How to connect to the MySQL database

Configuration Settings:

Host = localhost (really, put localhost)
Database name = (cpanelusername_databasename)
Database username = (cpanelusername_databaseusername)
Database password = (******)

Note: When you move databases to our servers, the database name and username may change. This change must be updated in your script code. (The database name and username is clearly displayed in cPanel, in the MySQL area.)

On shared servers, the database user name cannot be changed to something without the cPanel user name in it.

It is possible for someone to use their cPanel username and password to connect to the database. However, we NEVER recommend doing this because the first time you change or reset your cPanel password, then your databases will stop working.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Attach Data Bases SQL server 2005

SQL Server 2005 Books Online (November 2008) How to: Attach a Database (SQL Server Management...

How to Detach a Database (SQL Server Management Studio)

SQL Server 2005 Books Online (November 2008) How to: Detach a Database (SQL Server Management...

Sql 2008 R2 Management

FIX: A fix is available for SQL Server Management Studio 2008 R2 that enables you to rename SQL...

How To create Sql Data Base In Plesk

To create a database in Plesk: 1. Login to Plesk. 2. Click on the domain name in the list at...

How to connect to the MySQL server remotely

Note: If connecting from your home computer, you need a MySQL client like Navicat, phpMyAdmin, or...