数据库之mysql
shenBML
这个作者很懒,什么都没留下…
展开
-
-bash: ./mysql: /bin/bash^M: bad interpreter: No such file or directory 完美解决
在做mysql多实例启动脚本的时候是在win7下编写的,完成之后上传到服务器上,但是出现了-bash: ./mysql: /bin/bash^M: bad interpreter: No such file or directory错误,后来想了想老男孩老师曾经说过win系统下写的脚本一定要使用dos2unix转换下,要不然会出现字符集不识别的问题,下面是解决问题的命令:yum install原创 2016-09-30 10:37:40 · 3235 阅读 · 1 评论 -
mysql启动失败Starting MySQL.The server quit without updating PID file ([失败]ysqllnmp.pid)
mysql启动失败Starting MySQL.The server quit without updating PID file ([失败]ysqllnmp.pid) 一开始以为没有给/data/mysql的文件夹写入的权限,后来干脆给777的权限,但是启动还是报错,最后查看日志 InnoDB: the log sequence number in the ib_logfiles! 1原创 2016-12-02 10:44:58 · 11515 阅读 · 0 评论 -
mysql忘记root密码以及授权远程登录
环境是centos6X下1、如果你的mysql是新安装的,没有密码,那么就使用下面的命令进行添加密码mysqladmin -uroot password youpasswd2、如果是更新密码mysqladmin -uroot -p password younewpasswd原创 2016-11-15 17:56:12 · 498 阅读 · 0 评论