Skip to content

Instantly share code, notes, and snippets.

@craigw
Created July 20, 2009 19:21
Show Gist options
  • Select an option

  • Save craigw/150610 to your computer and use it in GitHub Desktop.

Select an option

Save craigw/150610 to your computer and use it in GitHub Desktop.
# on db-01
mysql -u root -p
Enter password: [enter the MySQL root password you chose earlier]
mysql> grant replication slave on *.* to 'replication'@'db-02' identified by 'some_password';
mysql> \q
sudo /etc/init.d/mysql restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment