ERROR 2006 (HY000) at line 1: MySQL server has gone away
2013-04-02 16:39
507 查看
-- the command of slow.sh was failed
ERROR 2006 (HY000) at line 1: MySQL server has gone away
ERROR 2006 (HY000) at line 1: MySQL server has gone away
cp: missing destination file operand after `.0402_0800'
Try `cp --help' for more information.
cp: missing destination file operand after `/dev/null'
Try `cp --help' for more information.
猜测应该是密码错误导致的登陆故障, 仔细监测运行slow的脚本,发现如下语句
slowlog_dir=`$MYSQL_HOME/bin/mysql -N -e "show variables like 'slow_query_log_file'"|awk '{print $2}'| cut -f1-3 -d '/'`
没有代入用户名密码,如果加上用户名密码参数.那么就OK了!
ERROR 2006 (HY000) at line 1: MySQL server has gone away
ERROR 2006 (HY000) at line 1: MySQL server has gone away
cp: missing destination file operand after `.0402_0800'
Try `cp --help' for more information.
cp: missing destination file operand after `/dev/null'
Try `cp --help' for more information.
猜测应该是密码错误导致的登陆故障, 仔细监测运行slow的脚本,发现如下语句
slowlog_dir=`$MYSQL_HOME/bin/mysql -N -e "show variables like 'slow_query_log_file'"|awk '{print $2}'| cut -f1-3 -d '/'`
没有代入用户名密码,如果加上用户名密码参数.那么就OK了!
相关文章推荐
- ERROR 2006 (HY000) at line 1: MySQL server has gone away
- ERROR 2006 (HY000) at line 8803: MySQL server has gone away
- [mysq]ERROR 2006 (HY000) at line xx: MySQL server has gone away 解决方法
- mysql error: ERROR 2006 (HY000) at line 149351: MySQL server has gone away
- ERROR 2006 (HY000) at line xxx: MySQL server has gone away
- ERROR 2006 (HY000) at line xx: MySQL server has gone away 解决方法
- 数据库导入过大 报错 ERROR 2006 (HY000) at line xx: MySQL server has gone away 解决方法
- mysqldump备份恢复错误ERROR 2006 (HY000) at line 364: MySQL server has gone away
- MySQL_解决ERROR 2006 (HY000) at line XX MySQL server has gone away问题
- ERROR 2006 (HY000) at line xx: MySQL server has gone away
- ERROR 2006 (HY000) at line xx: MySQL server has gone away 解决方法
- ERROR 2006 (HY000) at line xx: MySQL server has gone away 解决方法
- ERROR 2006 (HY000) at line 1: MySQL server has gone away
- ERROR 2006 (HY000) at line : MySQL server has gone away
- 解决ERROR 2006 (HY000) at line XX: MySQL server has gone away问题
- ERROR 2006 (HY000) at line xx: MySQL server has gone away 解决方法
- ERROR 2006 (HY000) at line xx: MySQL server has gone away 解决方法
- ERROR 2006 (HY000): MySQL server has gone away No
- amoeba连接mysql--ERROR 2006 (HY000): MySQL server has gone away
- ERROR 2006 (HY000): MySQL server has gone away