Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 cPanel 中使用 CronJob 导出 MySQL 数据,并将以下代码添加到命令行中:
/usr/bin/mysqldump --opt -u krystald_fred -p'tY$645=&nm' max_joomla > /home/max/db-backup.sql
在 CronJob 运行后,当我检查 db-backup.sql 文件时,我得到了文件中没有数据的空白.sql文件。
.sql
这个命令行有什么问题。谁能指导我解决这个问题。
谢谢。
那里没有足够的信息。可能有很多问题。只需从带有-v详细标志的命令行运行并查看。您可能还需要通过 3306 端口连接并指定主机名。这完全取决于您的安装。
-v