Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Mysql8 for Fedora server

2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to install Mysql8 in Fedora server". In daily operation, I believe many people have doubts about how to install Mysql8 in Fedora server. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to install Mysql8 in Fedora server". Next, please follow the editor to study!

Install MySQL YUM warehouse source # # 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 and 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 installation and update 1. Install Fedora 28/27/26dnf install mysql-community-serverCentOS 7.5 and Red Hat 6.10 and Red Hat (RHEL) 7.5/6.10yum install mysql-community-server2. Install MySQL 5.7.23Fedora 28/27/26dnf-- disablerepo=mysql80-community-- enablerepo=mysql57-community install mysql-community-serverCentOS 7.5 plus 6.10 and Red Hat (RHEL) 7.5/6.10yum-- disablerepo=mysql80-community-- enablerepo=mysql57-community install mysql-community-server3. Enable MySQL server and set the boot 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 on4. Get the initial random password 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. Reset the password alter user root@localhost identified by 'Custom password'; the new password must have all the special symbols of primary and secondary school numbers. 6. Connect to the local mysql server mysql-u root-p OR # # mysql-h localhost-u root-p, and the study on "how to install Mysql8 in Fedora server" is over. I hope you can solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report