Professional Documents
Culture Documents
How To Install MySQL 5.7 On Ubuntu 22.04 LTS
How To Install MySQL 5.7 On Ubuntu 22.04 LTS
How To Install MySQL 5.7 On Ubuntu 22.04 LTS
In this Article we are going to learn How to install MySQL 5.7 on Ubuntu 22.04 LTS
using command line, creating new user and enabled remote access in MySQL 5.7.
Table of Contents
wget https://dev.mysql.com/get/mysql-apt-config_0.8.12-1_all.deb
The next prompt shows MySQL 8.0 chosen by default. Choose the first option and
click OK
In the next prompt, select MySQL 5.7 server and click OK.
The next prompt selects MySQL5.7 by default. Choose the last option Ok and click OK
we are going to install MySQL 5.7 client, MySQL 5.7 server with the below
command:
Hit the y key to start installation of MySQL 5.7 on Ubuntu 22.04 LTS
Enter and re-enter root password:
sudo mysql_secure_installation
Provide the root password set above and you will have output like this:
... skipping.
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.
Remove test database and access to it? (Press y|Y for Yes, any other key for
No) : y
- Dropping test database...
Success.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.
All done!
version
users
Step #7: Enable MySQL remote access
By default, In MySQL database server remote access is disabled for security reason.
bindip
Conclusion:
In this article, We have performed ,How to Install MySQL 5.7 on Ubuntu 22.04 LTS
System, creating new user and enabled remote access in MySQL 5.7.
Related Articles:
Reference:
Build and Push Docker Image to AWS ECR Using GitHub Actions
How to Install Apache2 on Ubuntu 22.04 LTS
Shweta Mamidwar
I am Shweta Mamidwar working as a Intern in Product Company. Likes to
share knowledge.
4 thoughts on “How to Install MySQL 5.7 on
Ubuntu 22.04 LTS”
Muniprasad
February 8, 2023 at 9:10 AM
Good Job
Reply
sdf
April 10, 2023 at 5:07 PM
Use this:
sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv
467B942D3A79BD29
Reply
Sanjay
May 13, 2023 at 11:53 PM
Good post
I’m looking to install MySQL 5.7 version on Ubuntu, there’s already installed
MySQL 8.0,
I want both on same machine.
Can you guide to run multiple instances?
Reply
Leave a Comment
Name *
Email *
Website
Post Comment
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Search …
RECENT POSTS
FOSS TechNix (Free ,Open Source Softwares and Technology Nix*) is a community site where you
can find How-To Guides, Articles, Tips and Tricks for DevOps Tools, Linux, Databases, Clouds and
Automation.
DEVOPS TOOLS & TIPS