View Full Version : Mysql 2 servers, 2 mysql on each server, one database
Stephan
14th June 2009, 22:12
Hello,
I need a help with mysql. I currently have two servers and i want on each server to run mysql with the same database\same content. is it a way to mirror mysql?
please help me with that.
my linux: centos5
mysql 5
id10t
14th June 2009, 22:39
You want to look into replication
Stephan
14th June 2009, 22:54
You want to look into replication
can you explain what it is and how to do it?
robertlouwen
14th June 2009, 23:29
@ Stephan
Falko wrote a easy to follow, two pages tutorial for mysql replication.
You can find it here http://www.howtoforge.net/mysql_database_replication
Good luck
Robert
Stephan
15th June 2009, 01:20
thanks guys. i'll try Falko tutorial :rolleyes:
Stephan
15th June 2009, 06:56
mysql> LOAD DATA FROM MASTER;
ERROR 1189 (08S01): Net error reading from master
i get this error :confused:
falko
15th June 2009, 15:51
Use a database dump instead of the LOAD DATA FROM MASTER method.
Stephan
16th June 2009, 08:57
Use a database dump instead of the LOAD DATA FROM MASTER method.
i did it, but the content not mirroring on slave mysql :confused:
falko
16th June 2009, 15:00
Did you use this command to import the SQL dump on the slave?
mysql -u root -p<password> exampledb < /path/to/exampledb.sql
Did you see any errors?
Stephan
16th June 2009, 18:24
Did you use this command to import the SQL dump on the slave?
mysql -u root -p<password> exampledb < /path/to/exampledb.sql
Did you see any errors?
yes, i did...
ps
no errors at mysql restart
falko
17th June 2009, 13:42
And why exactly do you think that replication isn't working?
What's the output of
SHOW SLAVE STATUS\G
on the slave?
Stephan
17th June 2009, 23:13
And why exactly do you think that replication isn't working?
What's the output of
SHOW SLAVE STATUS\G
on the slave?
i'll try again later this day...
yesterday i tried interworx clustering panel and it sucks, my web site worked 3 times slower with it... so now I'm formating the system again
please check your pm
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.