Im trying to do an initial transfer of my data to a replica server by running this command:
sudo mysqldump -f -u root -pPassword --opt mydb | mysql --host=replica01 -C mydb -u restore -pPassword
It copies most of the data, but stops on one of the functions i've created with this error:
ERROR 1305 (42000) at line 3750: FUNCTION mydb.myFunction does not exist mysqldump: Got errno 32 on write
I have both procedures and functions in my database. Some procedures use functions in them. Is that what is causing this? In that case, what can i do to ignore these errors?