简体   繁体   中英

MySQL Dump Not Working In MySQL

I just installed a new Windows 7 Professional machine with MySQL 5.6.22. When trying to run the mysqldump command, I get the following:

E:>mysqldump -u root -p world > world.sql mysqldump: unknown option '--no-beep'

Mysqldump works fine on my other machines running 5.16.15 and 5.5.xx. Unfortunately, the msi installer for MySQL 5.6.15 will not work as some packages cannot be found. Oracle, it seems, will not support previous editions of 5.6.

On top of that, the MySQL installer for 5.6.23 only installs 5.6.22 in a round about way. The MSI installer has issues.

Can anyone shed light on mysqldump not working in 5.6.22?

Thanks!

我想你需要从它安装的路径运行mysqldump命令,首先cd进入该文件夹,然后像这样运行命令

C:\MySQL\MySQL Server 5.6\bin>mysqldump -u root -p -B database>name_of_backup_file.sql

I had the same issue. Search your active my.ini for the [client] section. Likely you will find the following:

[client]
no-beep

Comment or delete no-beep. It solves the 'no-beep' issue (now I have a new annoying error, hooray!). Be carefully checking whats your active my.ini because you might have some on different places.

Edit: Now, as I can call mysqldump w/o error, option --help tells me the follwing: Default options are read from the following files in the given order: C:\\Windows\\my.ini C:\\Windows\\my.cnf C:\\my.ini C:\\my.cnf [Your Server DIR]\\my.ini [Your Server DIR]\\my.cnf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM