本文共 564 字,大约阅读时间需要 1 分钟。
1、采用yum方式安装比手工下载、解压、设置等等更便捷,缺点是得知道get哪个文件才行。
wget -i -c https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpmyum -y install mysql80-community-release-el7-3.noarch.rpmyum -y install mysql-community-server
2、改了用户允许远程接入,但远程连接没响应,百度了半天发现是因为阿里云安全-防火墙没有增加mysql端口
3、远程登录,出现这样的错误,需要给新增用户grant权限
Access denied for user 'username'@'xxx.xxx.xxx.xxx' (using password: YES)
grant all privileges on *.* to 'username'@'%' with grant option;
username是登录使用的用户名,password是设置的密码。注意必须首先创建这个用户,例如我创建了一个admin用户,允许这个用户远程连接:
create user 'admin'@'%' identified by 'password';
转载地址:http://vuje.baihongyu.com/