mysql错误处理

1.Got error 28 from storage engine

如果数据库存储空间没问题,应该是数据库用的临时目录空间不够。

linux:清空/tmp目录,或者修改my.cnf中的tmpdir参数,指向具有足够空间目录。

windows:  mysql的临时目录一般在C:\Windows\Temp。


2. 1045 access denied for user 'root'@'localhost' using password yes
service mysql  stop
mysqld_safe --user=mysql --skip-grant-tables --skip-networking & 
//新开一个终端
mysql -u root -p
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root'; 
mysql> FLUSH PRIVILEGES; 
mysql> quit 
service mysql start

3.mysql is runing but PID file could not be found
先打印MYSQL进程
ps aux | grep mysql
然后KILL进程
kill -9 pid1 pid2 …
再启动MYSQL
service mysql start

4. mysql 启动 出现 the server quit without updating PID file

mysql_install_db    --user=mysql    --datadir=/var/lib/mysql

启动mysql

mysqld_safe  --user=mysql &



5. 重置密码后,mysql中执行语句  you must set password before executing this statement

mysql> SET PASSWORD=PASSWORD('password');



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值