Article directory
- 1. Enter mysql
- 2. Unlock the mysql LAN command
- 3. Clear the cache and take effect immediately
- 4. Check the IP of the machine, which will be used for subsequent connections
- 5. Let people in the same LAN use Navicat to connect and test
- 6. If the connection fails, check whether the firewall of your computer is closed. If the firewall is turned on, the connection cannot be successful.
1. Enter mysql
mysql -u root -p
2. Unlock the mysql LAN command
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
3. Clear the cache and take effect immediately
flush privileges;
4. Check the IP of the machine, which will be used for subsequent connections
ipconfig