MySQL数据备份"--no-beep"异常解决
2017-05-25 16:57
627 查看
今天使用AppServ集成环境下的MySQL进行数据备份,出现一个ERROR,如下:
mysqldump: [ERROR] unknown option '--no-beep'
查询资料,得到一个比较靠谱的说法,如下:
关于解决办法:
后我利用如下语句进行备份数据,成功备份,但有一个警告,数据无恙,语句如下:
上面结论参考于:
https://dev.mysql.com/doc/refman/5.6/en/option-files.html https://stackoverflow.com/questions/14210769/mysqldump-unknown-option-no-beep
mysqldump: [ERROR] unknown option '--no-beep'
查询资料,得到一个比较靠谱的说法,如下:
There is a "default" my.ini here: C:\ProgramData\MySQL\MySQL Server 5.7\my.ini. It contains the no-beep option. The MySQL Installer has my.ini templates for various versions in C:\ProgramData\MySQL\MySQL Installer for Windows\Manifest\Templates\, for some reason, all of it contains this option.
The no-beep option causes the mysql command line client not to beep when errors occur. If that's an option you want, it should be in the [mysql] section of your my.cnf [or my.ini]. This error suggests that it's in the [client] section of your my.cnf, which causes [...] to throw the error since the option isn't recognized. Check your my.cnf and either remove the line or place it in the [mysql] section instead of [client] and you should be good. The [client] option group is read by all client programs (but not by mysqld). This enables you to specify options that apply to all clients. For example, [client] is the perfect group to use to specify the password that you use to connect to the server. (But make sure that the option file is readable and writable only by yourself, so that other people cannot find out your password.) Be sure not to put an option in the [client] group unless it is recognized by all client programs that you use. Programs that do not understand the option quit after displaying an error message if you try to run them.
关于解决办法:
Removing my.ini from C:\ProgramData\MySQL\MySQL Server 5.6 solved it for me.关于这个解决方法,被人在下面回复了一句:Not a good idea to remove the my.ini file (我也觉得不怎么好,于是又找方法)
后我利用如下语句进行备份数据,成功备份,但有一个警告,数据无恙,语句如下:
mysqldump --no-defaults -uroot -ppwd -h127.0.0.1 --databases fendao > D:\ksk.txt
上面结论参考于:
https://dev.mysql.com/doc/refman/5.6/en/option-files.html https://stackoverflow.com/questions/14210769/mysqldump-unknown-option-no-beep
相关文章推荐
- 操作XmlDocument时,出现"System.OutOfMemoryException"异常,如何解决加载大数据的情况?
- 使用Ecplise git commit时出现"There are no stages files"(异常解决)
- MySQL中数据备份或转移后出现“使用中”和"doesn’t exist"解决办法
- "请备份该数据库的事务日志以释放一些日志空间"解决方法 推荐
- Oracle11g安装过程中"无法确定主机的IP地址时产生该异常错误" :解决办法
- 异常为"当IDENTITY_INSERT设置为OFF时" 的解决
- Wordpress转移数据表后出现"You do not have sufficient permissions to access this page"的解决方法
- "类型初始值设定项引发异常" 解决方法
- 解决连接MySQL时出现securityException异常,并且会有"That assembly does not allow partially trusted callers"的异常信息
- Oracle10g安装过程中"无法确定主机的IP地址时产生该异常错误" :解决办法
- 如何解决在快速向jtable添加数据的时候报AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException:异常
- "无任何网络提供程序接受指定的网络路径" or "No network provider accepted the given network path" 的解决方法
- oracle exp出现"ORA-00302:必须说明SET_NO_OUTLINES 组件" 解决方法
- SlickEdit在64bit Ubuntu下运行vsinst安装程序出现"No such file or directory"的解决方法
- MYSQL出现" Client does not support authentication "的解决方法
- [zz] Oracle10g安装过程中"无法确定主机的IP地址时产生该异常错误" :解决办法
- 解决ObjectDataSource的"未能找到带参数的非泛型方法"异常
- .net Repeater无数据时显示"no result" 快速解决方法
- mysql 数据同步 出现Slave_IO_Running:No问题的解决方法小结