root(a)...:~# vi /etc/mysql/conf.d/replication-master.cnf
et d'y "copier-coller" la portion de configuration suivante :
[mysqld]
server-id = 1
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
allez hop un petit redemarrage du service mysql pour que cette config soit prise en compte
root(a)...:~# /etc/init.d/mysql restart
Il ne te reste plus qu'à creer un utilisateur dédié a la réplication des bases :
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is ...
Server version: 5.1.41-3ubuntu12.10 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> grant replication slave, replication client on *.* TO rpldbuser@"%" identified by 'rpldbpasswd';
mysql> quit;
Aucun commentaire:
Enregistrer un commentaire