MySQL Forums
Forum List  »  Backup

Is there any command to create a db copy from another db MySQL
Posted by: sesame technologies
Date: February 08, 2023 06:25AM

is it possible to create a copy from another db using commant in mysql without using sql file

I tried this command mysqldump -u username -p old_database | mysql -u username -p new_database mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) lakhendrakushwah@LAKHENDRAs-MacBook-Air ~ % sudo -s Password: root@LAKHENDRAs-MacBook-Air ~ # mysqldump -u root -p lakha | mysql -u root -p testDB Enter password: Enter password: mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) root@LAKHENDRAs-MacBook-Air ~ # mysqldump -u root -p lakha | mysql -u root -p testDB Enter password: Enter password: mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect madhu@cool

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Options: ReplyQuote


Subject
Views
Written By
Posted
Is there any command to create a db copy from another db MySQL
238
February 08, 2023 06:25AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.