Hi If i run both commands on my database server: mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'123.456.789.000' IDENTIFIED BY 'password' WITH GRANT OPTION;" and mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'000.987.654.321' IDENTIFIED BY 'password' WITH GRANT OPTION;" The second command will overwrite the first one or not? Both remote servers with ip: 123.456.789.000 987.654.321.000 will be able to connect to the sql? Thank you
The second will not overwrite the first. MySQL views each user@address as a unique user so as long as you don't accidentally grant access to the same user@address you're fine.