您好,欢迎访问一九零五行业门户网

Fedora server怎么安装Mysql8

安装 mysql yum 仓库源## fedora 28 ##dnf install https://dev.mysql.com/get/mysql80-community-release-fc28-1.noarch.rpm## fedora 27 ##dnf install https://dev.mysql.com/get/mysql80-community-release-fc27-1.noarch.rpm## fedora 26 ##dnf install https://dev.mysql.com/get/mysql80-community-release-fc26-1.noarch.rpmcentos 和 red hat (rhel)## centos 7 and red hat (rhel) 7 ##yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpmcentos 6 and red hat (rhel) 6 ##yum localinstall https://dev.mysql.com/get/mysql80-community-release-el6-1.noarch.rpm
安装和更新1.安装fedora 28/27/26dnf install mysql-community-servercentos 7.5/6.10 and red hat (rhel) 7.5/6.10yum install mysql-community-server
2.安装 mysql 5.7.23fedora 28/27/26dnf --disablerepo=mysql80-community --enablerepo=mysql57-community install mysql-community-servercentos 7.5/6.10 and red hat (rhel) 7.5/6.10yum --disablerepo=mysql80-community --enablerepo=mysql57-community install mysql-community-server
3. 开启 mysql server 并设置开机自启fedora 28/27/26 centos 7.5 red hat (rhel) 7.5systemctl start mysqld.serviceuse restart after updatesystemctl enable mysqld.servicecentos 6.10 and red hat (rhel) 6.10/etc/init.d/mysql startuse restart after update
or ##
service mysql start ## use restart after updatechkconfig --levels 235 mysqld on
4. 获取初始的随机密码grep 'a temporary password is generated for root@localhost' /var/log/mysqld.log |tail -1
example output:
2018-11-20t21:11:44.229891z 1 [note] a temporary password is generated for root@localhost: -et)qol4mlid
and root password is: -et)qol4mlid
5.重置密码alter user root@localhost identified by '自定义密码';新密码必须大小学数字特殊符号全部具备。
6. 连接本地mysql服务器mysql -u root -p or ## mysql -h localhost -u root -p
以上就是fedora server怎么安装mysql8的详细内容。
其它类似信息

推荐信息