[英]Copying a mysql database from localhost to remote server using mysqldump.exe
[英]mysqldump error while copying database from server to another
我正在嘗試將數據庫從一台服務器復制到另一台服務器
mysqldump -u<source_db_username> -p<source_db_password> -h<source_db_ip_address> source_database_name
| mysql -u<target_db_username> -p<target_db_password> -h<aws_rds_endpoint> <aws_rds_db_name>;
但是我明白了
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server
version for the right syntax to use near 'mysqldump -u<source_db_username> -p<source_db_password>
-h<source_db_ip_address> source_database_name ' at line 1
復制時不應該使用數據庫,我只需要引用mysql位置即可使用它,並且不應該使用';' 在命令末尾,它現在可以正常工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.