In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "linux system ubuntu18.04 how to install mysql 5.7", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "linux system ubuntu18.04 how to install mysql 5.7" this article.
This article is sorted out with reference to mysql's official website, and some problems encountered are recorded by the way.
① adds the MySQLAPT repository to the list of software repositories on the system
-> download APT repository (download link)
-> install the APT repository (note the correct path)
(1)
Sudo dpkg-I mysql-apt-config_0.8.10-1_all.deb
Here I wrote the tutorial under Tencent Cloud's ubuntu. After I executed the above command in Tencent Cloud, I jumped out of the interface for installing MySQL.
When I install it on my computer, wait until the APT repository is installed, then execute the following command
(2)
Sudo apt-get update
Then install MySQL
(3)
Sudo apt-get install mysql-server
If you execute the (1) code, jump out of the following interface
Can directly continue to operate, if not jump out, in accordance with the normal implementation of (2) (3) command, will also jump out of the above picture. It's not a big problem here.
But I don't know exactly why I can directly pop up the installation screen when I execute the command (1) in Tencent Cloud. I am also new to learning Linux. Or if you have friends who know, you can leave a message for discussion.
② install MySQL
Then in the picture above, I choose not to install version 8.0, because it doesn't match my computer development environment, of course you can install 8.0, this depends on the individual.
Enter to select the first one and enter the following screen
I choose version 5.7. Go ahead.
Others remain by default, or can be changed if necessary.
Hey! There's a problem. I'll be done after I choose ok.
Then let me continue to enter commands. All right, let's improvise, so let's continue to try the (2) command.
Sudo apt-get update
Then after the update, we continue with the (3) command
Sudo apt-get install mysql-server
Well, it's under normal installation.
Then I will ask you to enter the password of the database root account. I remember to use uppercase and lowercase letters with special symbols and no less than 8 characters.
Next, just enter the confirmation again.
This completes the installation.
Let's enter the command to log in to mysql to see if the installation is successful.
Mysql-u root-p
Then enter the password. The mysql > in the following figure is a success.
In addition, there is a complete deletion of MySQL, visualization tool workbench, I will not put up, if you need to contact me later, I will add.
The above is all the contents of the article "how to install mysql 5.7 on linux system ubuntu18.04". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.