gpt4 book ai didi

linux - mysqldump shell 命令错误

转载 作者:太空宇宙 更新时间:2023-11-04 04:23:30 25 4
gpt4 key购买 nike

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

最佳答案

删除“-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

关于linux - mysqldump shell 命令错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11168993/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com