简体   繁体   中英

PHP connecting to amazon EC2

Even when I set the security group to allow all traffic, the following error keeping showing. How should I set the security rules properly?

Warning: mysqli_connect(): (HY000/1130): Host '123.202.164.45' is not allowed to connect to this MySQL server in /Applications/XAMPP/xamppfiles/htdocs/data.php on line 16
Failed to connect to MySQL: Host '123.202.164.45' is not allowed to connect to this MySQL server

Solved, thanks! MySQL forbids remote login for the root account.

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