I have a shell script that looks something like that:

 mysql -udb_user -pdb_password -e "LOAD DATA LOCAL INFILE '/srv/some_file.csv'

the problem is that when I run this script on my master server the call doesnt get replicated to the slave server (even though /srv/some_file.csv exists on both servers).

any ideas how to make shell command replicate over servers?

  • i voted the other one as duplication, it had a problem with identifying me as the author.... – Ran Jan 16 '12 at 16:41
  • @DTest BTW, following our disscussion from the other question, my version of mysql should support the load data and when i run it from the mysql shell it works and being replicated, but when i run from the linux shell it only works on the master and not on the slave – Ran Jan 16 '12 at 16:45
  • I am assuming when you run it through the -e flag, that it actually makes the changes on the master server? – Derek Downey Jan 16 '12 at 18:13
  • yes, when using running with the -e flag the changes are made on the master but dont get replicated to the slave. if i the same query on a mysql shell, data is affected on the master and the slave – Ran Jan 16 '12 at 21:05

Browse other questions tagged or ask your own question.