企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 安装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