Connecting to database

not connecting to my database

My own

Connect to the database. I am running into problems. using PDO
I have below what I filled in for the dsn. I think that is correct
Is the username my email address
For the password - Is it the FTP password or password that I get into
Again I am passing these parameters to the PDO

$dsn = ‘mysql:host=;dbname=epiz_24293092_my_guitar_shopg’;
$username = ‘[email protected]’;
$password = ’ ';

First of all, the SQL host is not the IP of our installation of phpMyAdmin, but should look like and can be found on the “MySQL Databases” section of the Control Panel, on the “Database Host” table.
Second, the username is not the email address, but it should look like epiz_12345678.
And last of all, you can’t connect to the database without a password! To find the hosting account password, login into your Client Area, click on the username of the account where is your script, scroll down until you see “Account Details” and click on “Show/Hide” to show the password.

1 Like

Thank you very much. It is now connecting. You have been a big help

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.