How can you help me please

I have a problem with the connection to the database, I can not connect, then my database was created on 000webhost.com
Here the script

<?php $DBServer = 'altidorronexmultiservices.000webhostapp.com'; // e.g 'localhost' or '192.168.1.100' $DBUser = 'id5532595_root'; $DBPass = 'DB_PASSWORD'; $DBName = 'id5532595_mabase'; $dbh = new PDO('mysql:DBServer=localhost DBName=id5532595_mabase', $DBUser, $DBPass); ?>

DBserver is localhost

Here the script

<?php $DBServer = 'localhost'; // e.g 'localhost' or '192.168.1.100' $DBUser = 'id5532595_root'; $DBPass = 'DB_PASSWORD'; $DBName = 'id5532595_mabase'; $dbh = new PDO('mysql:DBServer=localhost DBName=id5532595_mabase', $DBUser, $DBPass); ?>

Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] ProxySQL Error: Access denied for user ‘id5532595_root’@‘2a02:4780:bad:f00d::16’ (using password: YES) in /storage/ssd1/595/5532595/public_html/connect.php:15 Stack trace: #0 /storage/ssd1/595/5532595/public_html/connect.php(15): PDO->__construct(‘mysql:DBServer=…’, ‘id5532595_root’, ‘DB_PASSWORD’) #1 {main} thrown in /storage/ssd1/595/5532595/public_html/connect.php on line 15

Make sure your password is correct. Or try resetting.

Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] ProxySQL Error: Access denied for user ‘id5532595_root’@‘2a02:4780:bad:f00d::16’ (using password: YES) in /storage/ssd1/595/5532595/public_html/connect.php:15 Stack trace: #0 /storage/ssd1/595/5532595/public_html/connect.php(15): PDO->__construct(‘mysql:DBServer=…’, ‘id5532595_root’, ‘DB_PASSWORD’) #1 {main} thrown in /storage/ssd1/595/5532595/public_html/connect.php on line 15

The password is still incorrect

I have changed the password

Maybe the username is incorrect?

Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] ProxySQL Error: Access denied for user ‘id5532595_root’@‘2a02:4780:bad:f00d::16’ (using password: NO) in /storage/ssd1/595/5532595/public_html/connect.php:15 Stack trace: #0 /storage/ssd1/595/5532595/public_html/connect.php(15): PDO->__construct(‘mysql:DBServer=…’, ‘id5532595_root’, ‘’) #1 {main} thrown in /storage/ssd1/595/5532595/public_html/connect.php on line 15

You deleted the password :confused:

send me a complete code

My data base is :mabase
User: root
No password

Use a passwore :slight_smile:

Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] ProxySQL Error: Access denied for user ‘id5532595_root’@‘2a02:4780:bad:f00d::16’ (using password: YES) in /storage/ssd1/595/5532595/public_html/connect.php:15 Stack trace: #0 /storage/ssd1/595/5532595/public_html/connect.php(15): PDO->__construct(‘mysql:DBServer=…’, ‘id5532595_root’, ‘*******’) #1 {main} thrown in /storage/ssd1/595/5532595/public_html/connect.php on line 15

Try

mysqli_connect("localhost","USERNAME","PASSWORD","DBNAME");

Warning: mysqli_connect(): (HY000/1045): ProxySQL Error: Access denied for user ‘id5532595_root’@‘2a02:4780:bad:f00d::16’ (using password: YES) in /storage/ssd1/595/5532595/public_html/connect.php on line 16

Hi @Tdjwenex!

On 000webhost all databases do have a password even if you magically set them to null. :wink:

Also, I see you have no database created :confused:

What is the account e-mail to which the database is registered?

1 Like

*****************

 

Can you help me with this data base

Username is not root, but idxxxxxx_root