PDOException using Laravel 5

PDOException in MySqlConnector.php line 41:
SQLSTATE[#4200]: <>: 1044 Access denied for user ‘username’@’%’ to database ‘database;’

Everything working but cannot connect to database

Try after sometime as i guess you have recently created the database!!

Visit the control panel and change PHP version to the one that matches the script you are attempting to run.

No solution I tried changing the php version as well.

I assume you are using the correct user/password?

Yep the username and password are correct.

Does the free hosting have the requirements to run your script?

I guess not…I uploaded it to another free webhosting and it works great. Thanks for your help.

1 Like