Linux下的mysql安装

(推介方式)在线安装mysql:

https://www.linode.com/docs/databases/mysql/how-to-install-mysql-on-centos-7/

离线安装mysql:

https://www.cnblogs.com/yy3b2007com/p/10497787.html

Linux下mysql安装包的下载,搜狐镜像:http://mirrors.sohu.com/mysql/MySQL-5.7/?C=M&O=A,官网下载太慢

mysql升级参考:

https://blog.mrabit.com/details/52


修改mysql密码:

5.7以上的版本:

use mysql;

update user set authentication_string=PASSWORD("your password") where User="root";

开启远程访问:

grant all privileges on *.* to root@'%' with grant option;


修改数据文件目录:

https://blog.csdn.net/zhanjianshinian/article/details/38169891


连接mysql库报Table ‘performance_schema.session_variables’ doesn’t exist,解决方法:

Linux下的mysql安装_第1张图片

在CentOS7中,使用

systemctl stop mysqld.service

systemctl start mysqld.service

你可能感兴趣的:(Linux下的mysql安装)