简体   繁体   中英

connect to mysql.. host changed in error?

Is connecting with one IP but an error occurs with a complete strange host/ip??

new mysqli('88.198.55.xxx', 'root', 'pass', 'db');

This returns

Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'root'@'static.226.106.46.78.clients.your-server.de' (using password: YES)

I really don't get it?!

The message that you are seeing was generated by the MySQL server, and reports that the connection attempt from 'root'@'static.226.106.46.78.clients.your-server.de' was denied. The host given in that message will be the hostname of the connecting client (ie the server on which PHP is running).

The reason for the access denial could either be because the 'root' user is not permitted to connect from that host (using password authentication), or that the password is incorrect.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM