If you check the documentation for the mysql_connect
function, you will see that the params it takes is: Server
, Username
, Password
in that order. You send your password in as username instead of the other way.
I would recommend that you take a look at PDO
or mysqli
instead of using the deprecated mysql_*
api.
3
solved Access denied for user ‘test123’@’192.168.0.38’ (using password: NO)