Linux安装mysql

编程

下载mysql源安装包 1.wget http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm 安装mysql源 2.yum -y install mysql57-community-release-el7-11.noarch.rpm 查看效果 3.yum repolist enabled | grep mysql.* 安装mysql服务器 4.yum install mysql-community-server 启动mysql服务 5.systemctl start mysqld.service 查看mysql服务的状态: 6.systemctl status mysqld.service 查看初始化密码 7.grep "password" /var/log/mysqld.log 登陆 mysql -u root -p 数据库授权 GRANT ALL PRIVILEGES ON *.* TO "root"@"%" IDENTIFIED BY "123456" WITH GRANT OPTION; FLUSH PRIVILEGES;

以上是 Linux安装mysql 的全部内容, 来源链接: utcz.com/z/512548.html

回到顶部