0
mysqldump -S /opt/lampp/var/mysql/mysql.sock -u root -h localhost -p gihan mistoria wp_posts |  gzip -9 >/opt/lampp/htdocs/mistoria/wp-content/backups/backup_table.sql.gz

这是我的命令,一旦插入此命令,它就会返回以下错误,请帮助我。

mysqldump: Got error: 1049: Unknown database 'gihan' when selecting the database
4

1 回答 1

0

删除“-p”和密码之间的空格。

mysqldump -S /opt/lampp/var/mysql/mysql.sock -u root -h localhost -pgihan mistoria wp_posts |  gzip -9 >/opt/lampp/htdocs/mistoria/wp-content/backups/backup_table.sql.gz
于 2012-06-23T11:14:58.680 回答