Problem Description: MySQL database installation is successful, the server can be connected locally successful, but the use of tools navicat can not connect remotely, as shown:
The reason: MySQL by default only allow the root account to log on locally, if you want to connect mysql on another machine, you must modify the root allow remote connections.
Solution:
1. Go to mysql:
/ Usr / local / mysql / bin / mysql -u root -p (The address of the server database may be installed) Or mysql -uroot -p
Figure
When the password is entered, linux command panel does not have any reaction, after the Enter key input
2. Use mysql database:
use mysql;
3. Check the user table:
SELECT `Host`,`User` FROM user;
4. Update the User table :(% which means that all the ip allow remote access, if you need to specify a specific ip and wrote to the specific ip)
UPDATE user SET `Host` = '%' WHERE `User` = 'root' LIMIT 1;
5. Force refresh permissions:
flush privileges;
test was successful!