🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
### 安装MYSQL 5.7 版本 wget http://repo.mysql.com/mysql57-community-release-el7.rpm rpm -ivh mysql57-community-release-el7.rpm yum install -y mysql-server mysql mysql-deve systemctl start mysqld.service ### yum mysql 默认密码,及开启远程登录 grep 'temporary password' /var/log/mysqld.log //你会看到密码 mysql SET PASSWORD = PASSWORD('密码'); GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION; flush privileges; * 其中 '密码' 请改成想要的密码,要复杂的,否则会出错。 * 之后重启mysql `service mysqld restart` ### 设置自启动,以免服务器重启,mysql没有启动。 chkconfig mysqld on