Reputation: 647
I want to copy the database schema from a remote server with mysqldump. The local database get the schema, but also, I get an error from console.
mysqldump -h200.200.200.200 --no-data --no-create-db --single-transaction --routines -u root -psecretpass remote_db | mysql -u root -psecretpass local_db
What this's mean? Should I worry about?
ERROR 1 (HY000) at line 4158: Can't create/write to file './remote_db/db.opt' (Errcode: 2 - No such file or directory)
Upvotes: 0
Views: 349
Reputation: 1833
Check if you have create procedure
permissions:
--routines
Use of this option requires the SELECT privilege for the mysql.proc table. So you might get the table schema, but nor procedures and functions
Upvotes: 1