Linux configure MySQL to allow remote access

  1. Enter mysql:

    mysql –uroot –p

  2. Using the mysql library:

    use mysql;

  3. update user table

    UPDATE user SET `Host` = '%' WHERE `User` = 'root' LIMIT 1;

  4. Force refresh permissions:

    flush privileges;

Remember to configure port 3306 to be accessible from the external network.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325022311&siteId=291194637
Recommended