https://blog.csdn.net/sz_bdqn/article/details/46512991
先检查是否存在已安装的MySQL
yum list installed | grep mysql
若存在删除:
yum remove 软件名称
CentOS 7的yum源中没有正常安装mysql时的mysql-sever文件,需要去官网上下载
# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm# rpm -ivh mysql-community-release-el7-5.noarch.rpm# yum install mysql-community-server
成功安装之后重启mysql服务
# service mysqld restart
初次安装mysql是root账户是没有密码的
设置密码的方法
# mysql -u root
mysql >setpasswordfor'root'@'localhost'= password('666');
mysql> exit
搞定!
mysql在安装完成后mysql.user表中有多个用户,建议清除除root以外的其他用户,保证安全和不必要的bug
mysql> delete from mysql.user where host != 'localhost' or user !='root';
mysql> exit
yum install
https://blog.csdn.net/river131/article/details/53838640
php70w-mysql 出错方法:
https://blog.csdn.net/Mikeoperfect/article/details/80375447
redis扩展:
https://blog.csdn.net/cs729298/article/details/74298430/
安装mysql5.5
http://www.cnblogs.com/Troy-Lv5/p/9273235.html
网友评论