Home > Database > Mysql Tutorial > Linux下安装MySQL常见问题处理

Linux下安装MySQL常见问题处理

WBOY
Release: 2016-06-07 16:52:06
Original
981 people have browsed it

Linux下装完后启动mysql老是等待,启动不了 处理:看看MYSQL日志(/var/lib/mysql/user.err),最常见的情况是权限问题,也就是说

Linux下装完后启动mysql老是等待,启动不了

处理:看看MYSQL日志(/var/lib/mysql/user.err),最常见的情况是权限问题,也就是说刚装完机器,没有mysql用户,那么建立一个mysql用户就OK。

安装完后直接用mysql没有反应

处理:这是因为perl已经不完整的缘故,可能是删除老版本的时候,把perl的一部分东西给删除了,其实没什么,直接用/usr/local/mysql/bin/mysql 进入就OK。

进入mysql以后,连接mysql结果提示:can t connect to local mysql server through socket /var/lib/mysql/mysql.sock(111)

处理:打开/etc/my.cnf,然后在[mysqld]和[client]下的socket都改: socket = /var/lib/mysql/mysql.sock

ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock

说明:或者是ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock ,看自己的情况来定.

改完之后,,连接MYSQL的时候如果报:Client does not support authentication protocol requested by server.....

处理:进入mysql,直接输入 UPDATE mysql.user SET Password = OLD_PASSWORD('新密码') WHERE Host = 'localhost' AND User = '用户名';

然后重置:FLUSH PRIVILEGES;

再连接就没问题了。 

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template