- How to grant remote access to MySQL for a whole subnet?
- $ mysql -u root -p
- Enter password:
- mysql> use mysql
- mysql> GRANT ALL ON *.* to root@'192.168.1.4' IDENTIFIED BY 'your-root-password';
- mysql> FLUSH PRIVILEGES;
- GRANT ALL ON *.* to root@'192.168.1.%' IDENTIFIED BY 'your-root-password';
- mysql> GRANT ALL ON *.* to root@'192.168.1.%' IDENTIFIED BY 'your-root-password';