[SOLVED] Error while configuration of mysql replication in centos
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Error while configuration of mysql replication in centos
Hi
I try to replicte mysql database when database update on master server to get update on slave.I followed the following link for configuration ,but whenever mysql database getting on matser server does int getting replicate on slave .Can anyone help me whether its possible to replicate mysql database from master to slave
root@dinesh-desktop:~# scp root@10.200.2.34:/tmp/pommo.sql /tmp
root@10.200.2.34's password:
pommo.sql 100% 16KB 15.8KB/s 00:00
root@dinesh-desktop:~# cd /tmp
root@dinesh-desktop:/tmp# ls
gedit.root.975254361 orbit-gdm pommo.sql ssh-kkDxNe1685
root@dinesh-desktop:/tmp# cd
root@dinesh-desktop:~# mysql -uroot -ppassword
root@dinesh-desktop:~# mysql -uroot -ppassword
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 196
Server version: 5.1.41-3ubuntu12.10 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
Aborted
root@dinesh-desktop:~# mysql -uroot -ppassword pommo < pommo.sql
-bash: pommo.sql: No such file or directory
root@dinesh-desktop:~# mysql -uroot -ppassword pommo </tmp/ pommo.sql
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
root@dinesh-desktop:~# mysql -uroot -ppassword pommo </tmp/pommo.sql
root@dinesh-desktop:~# vi /etc/mysql/my.cnf
root@dinesh-desktop:~# vi /etc/mysql/my.cnf
server-id=2
master-host=10.200.2.34
master-user=slave_user
master-password=ecare2@
master-connect-retry=60
replicate-do-db=pommo
vi /etc/mysql/my.cnf
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
server-id=2
master-host=10.200.2.34 ---server ipadress
master-user=slave_user
master-password=password
master-connect-retry=60
replicate-do-db=pommo
Quote:
server side --10.200.2.34
mysql -uroot -ppassword
> Create databases pommo;
mysql> use pommo;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Hi
I try to replicte mysql database when database update on master server to get update on slave.I followed the following link for configuration ,but whenever mysql database getting on matser server does int getting replicate on slave .Can anyone help me whether its possible to replicate mysql database from master to slave
First, very possible, and it's done all the time. Second, you followed a tutorial from 2006...did you try to look up a CURRENT setup guide, from MySQL?
Might also help to tell us what didn't work, what you're seeing in the logs, version/distro of Linux and version of MySQL. Just saying "didn't replicate" tells us little.
,and but im facing out error in Client side Slave_IO_Running: No.Its delivering mysql connection to master had failed.B.i could able to connect the server from client using graphical interface sqlyog.
Client Side
Server version: 5.1.41-3ubuntu12.10 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.