请选择 进入手机版 | 继续访问电脑版

触摸屏论坛

 找回密码
 注册论坛
查看: 583|回复: 0

运行mysql_upgrade提示 mysql_upgrade: unknown option '--no-beep'

[复制链接]
发表于 2013-7-28 11:37:49 | 显示全部楼层 |阅读模式
在windows下运行mysql_upgrade命令的时候,提示如下的错误:

mysql_upgrade: unknown option '--no-beep'

解决办法如下:

1. 首先 mysql_upgrade 的命令运行方式为如下
    mysql_upgrade -uroot -pPass   见Pass换成你的mysql root用户名的密码即可。

2. 上面错误提示的详细解释请看下面的英文
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. This error suggests that it's in the [client] section of your my.cnf, which causes mysql_upgrade 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.

  
   简而言之,就是打开mysql安装目录下的 my.ini ,搜索 [client] ,然后在 [client] 的下方有一行
  
no-beep

  将其改成
#no-beep


3. 重新运行 mysql_upgrade 命令即可

   希望对你解决 no beep 提示有帮助
您需要登录后才可以回帖 登录 | 注册论坛

本版积分规则

地址:成都市高升桥东路2号高盛中心1109室 电话:028-85108892 13183843395 028-66219290
版权所有 Copyright(C) 2003-2014 All rights reserved Archiver 中国触摸屏网 电子邮件:51touch@126.com
在线咨询QQ:触控面板,触摸屏原理,触摸屏一体机咨询 893008608 TouchPanel,TouchScreen,TouchController MSN:touch8@gmail.com

蜀ICP备05002005号
快速回复 返回顶部 返回列表
关 闭
<展
关 闭
<展
关 闭
<展
关 闭
<展
关 闭
<展