MySQL Connection Strings
A connection string is a sequence of variables that will address the specific database and allow you to connect your code to your MySQL database.
If you do not have a database yet, the following article will provide you with the proper instructions: How to Create and Delete MySQL Databases and Users.
The connection string can be either of the two examples below (be sure to replace the variables in red with your actual information):
$dbh = DBI->connect("DBI:mysql:cpUsername_dbName:localhost","cpUsername_dbUsername","password");
$dbh=mysql_connect ("localhost", "cpUsername_dbUsername", "password")
or die ('I cannot connect to the database.');
For further assistance, you may contact our Chat Support or Phone Support via 888-401-4678. You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.