阿里云ECS安装配置mysql
centos8.0
下载安装mysql
wget -P /home/temp http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
rpm -ivh mysql57-community-release-el7-11.noarch.rpm
yum module disable mysql
yum -y install mysql-community-server
systemctl start mysqld
grep 'temporary password' /var/log/mysqld.log
查询到默认密码后以root用户进入,修改密码
mysql -uroot -p
update user set password=password('password') where user='root';
FLUSH PRIVILEGES
grant all privileges on *.* to root@"%" identified by "password";
FLUSH PRIVILEGES
阿里云端口开放
点击编辑规则
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步