开发者

MySQL export command doesn't output anything

开发者 https://www.devze.com 2023-03-30 00:02 出处:网络
I\'m trying to export a MySQL database with a command I use quite often mysql --user=root --database=dbname > myfile.sql

I'm trying to export a MySQL database with a command I use quite often

mysql --user=root --database=dbname > myfile.sql

It starts working. Usually I check on the status by opening another terminal and checking the output file size. Generally it grows in size quite quickly 开发者_StackOverflow中文版until it finishes. Now it's 0b large and not growing.

I let the mysql process run for a while before I cancelled it using CTRL+C. The output sql file now contains only the words "CTRL-C -- exit!"

Any idea what I might be doing wrong this time?


You want mysqldump not mysql (which is the command-line client).

0

精彩评论

暂无评论...
验证码 换一张
取 消