MySQL Connection Strings

Question
What should i use as a MySQL connection string to connect my script to your server?
Answer
A connection string is a sequence of variables which will allow your code to connect to your specific MySQL database and authenticate
Configuration
You can use the following configuration settings Version: MySQL 5 Username: cpUsername_dbName
Database Name: cpUsername_dbUsername
Password: The password for cpUsername_dbUsername
Hostaddress: localhost
Port: 3306
Perl
$dbh = DBI->connect("DBI:mysql:cpUsername_dbName:localhost","cpUsername_dbUsername","password");
PHP
$link = mysqli_connect("myhost","myuser","mypassw","mydb") or die("Error " . mysqli_error($link));
Still need help?
If you need further assistance than this entry provided, please, do open up a support ticket, we are here to help you out
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Do you allow remote MySQL connections

Question Do you allow remote MySQL connections Answer Due to the security concerns...

How do I import or export an .SQL file via phpMyadmin?

Question How do I import an .SQL file via phpmyadmin...

How to create a MySQL database and assign users?

Question How do i create a MySQL database and assign users? Answer MySQL is a...

What version of MySQL are you running?

Question What version of MySQL are you running?...

Can I import my database from a later version of MySQL into your servers?

Question Can I import my database from a later version of MySQL into...

Powered by WHMCompleteSolution

Our official partners