I am trying to create a copy of database in mysql using mysqldbcopy like :
mysqldbcopy --source=root:[email protected] --destination=root:[email protected] old_db:new_db
I am getting error saying cannot connect to the destination server (Error code 110). Source and destination is same server. I want to know which user and ip i need to put here, whether to put mysql username and password or server username and password. Please help me out in this.
--source=root:pass@localhost:port
and actually uselocalhost
instead of using the IP address.mysqldbcopy
allows to copy database locally without limitation. Maybe the source of Your problem is no multi-logon allowed? Try to create separate users for source and destination connections...