Linux下MYSQL无法启动问题
2013-06-13 14:58
537 查看
当MYSQL出现一下情况无法启动时:
[root@mail falcon]# mysql -uroot -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@mail falcon]# /usr/sbin/mysqld
080416 8:17:30 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
080416 8:17:30 [ERROR] Aborting
080416 8:17:30 [Note] /usr/sbin/mysqld: Shutdown complete
解决方法:
[root@mail falcon]# su mysql
bash-2.05b$ /usr/sbin/mysqld
080416 8:22:22 InnoDB: Started; log sequence number 0 43922
080416 8:22:22 [Warning] mysql.user table is not updated to new password format; Disabling new password usage until mysql_fix_privilege_tables is run
/usr/sbin/mysqld: ready for connections.
Version: '4.1.15-standard' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Edition - Standard (GPL)
MYSQL启动成功
[root@mail falcon]# mysql -uroot -p123456
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.1.15-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
忘记MYSQL密码解决方法:
#killall mysqld
#/usr/bin/safe_mysqld --skip-grant-tables
#mysql
mysql>
[root@mail falcon]# mysql -uroot -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@mail falcon]# /usr/sbin/mysqld
080416 8:17:30 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
080416 8:17:30 [ERROR] Aborting
080416 8:17:30 [Note] /usr/sbin/mysqld: Shutdown complete
解决方法:
[root@mail falcon]# su mysql
bash-2.05b$ /usr/sbin/mysqld
080416 8:22:22 InnoDB: Started; log sequence number 0 43922
080416 8:22:22 [Warning] mysql.user table is not updated to new password format; Disabling new password usage until mysql_fix_privilege_tables is run
/usr/sbin/mysqld: ready for connections.
Version: '4.1.15-standard' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Edition - Standard (GPL)
MYSQL启动成功
[root@mail falcon]# mysql -uroot -p123456
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.1.15-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
忘记MYSQL密码解决方法:
#killall mysqld
#/usr/bin/safe_mysqld --skip-grant-tables
#mysql
mysql>
相关文章推荐
- 直接关闭Linux,导致多实例MySQL无法启动的问题
- Linux下mysql无法启动问题解决
- 主题:关于在linux中无法启动MySQL的问题.
- MySQL服务无法启动(1067)问题
- Linux下XAMPP装完之后,Navicat无法连上数据库的问题的解决 注意'mypassword'是当前的mysql登录密码
- linux下编译C++程序无法链接Mysql的问题
- mysql 出现1067错误无法启动的问题解决思路
- 关于linux mysql启动错误问题
- 解决安装Domino for Linux时配置的Web服务器无法启动的问题
- linux下安装mysql默认root无法登陆问题
- mysql无法启动问题的解决方案:mysql.sock重启不自动生成,mysqld_safe启动报错
- Mysql修改datadir导致无法启动问题解决方法
- Linux修改fstab引起系统无法启动问题的解决方法
- Java之坑——安装Mysql5.7.20遇到的问题(start server+mysql server无法启动)
- 解决MySQL服务无法启动(1067)的问题
- Linux版mysql 启动错误-server PID file could not be found问题的解决
- 解决登录WDCP面板出现"无法连接mysql,请检查mysql是否已启动"问题
- Linux修改fstab引起系统无法启动问题的解决方法
- Linux下解决MySQL中文无法储存的问题
- MySQL-5.7.14 net start mysql 服务无法启动-“NET HELPMSG 3534” 奇怪的问题