Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/61.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 从命令行下载Mariadb Dump_Mysql_Database Dump - Fatal编程技术网

Mysql 从命令行下载Mariadb Dump

Mysql 从命令行下载Mariadb Dump,mysql,database-dump,Mysql,Database Dump,我正在尝试使用CLI转储数据库。我正在执行以下查询 mysql -u root -p --database = byx_prod_db < dumpfile.sql; 使用文本编辑器检查转储文件。它没有正确创建,似乎包含了您在尝试进行备份时使用的命令行,而不是备份本身。请使用文本编辑器检查转储文件。它没有正确创建,并且似乎以某种方式包含您在尝试进行备份时使用的命令行,而不是备份本身。 ERROR 1064 (42000): You have an error in your SQL sy

我正在尝试使用CLI转储数据库。我正在执行以下查询

mysql -u root -p --database = byx_prod_db < dumpfile.sql;

使用文本编辑器检查转储文件。它没有正确创建,似乎包含了您在尝试进行备份时使用的命令行,而不是备份本身。请使用文本编辑器检查转储文件。它没有正确创建,并且似乎以某种方式包含您在尝试进行备份时使用的命令行,而不是备份本身。
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'mysqldump --add-drop-database  byx_prod_db > dump.SQL' at line 1