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 MySql under Linux

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly explains "how to install MySql under Linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install MySql under Linux.

Install Mysql on Linxu:

Determine whether mysql is installed on centos, and execute the command rpm-qa | grep mysql

If it has been installed, you need to delete the original to prevent conflicts, execute the command rpm-e mysql-libs-5.1.66-2.e16_3.i686-- nodeps

Install the server side of mysql and execute the command rpm-I MySQL-server-5.5.31-2.e16.i686.rpm

Start the mysql service and execute the command mysqld_safe &

Install the client for mysql and execute the command rpm-I MySQL-client-5.5.31-2.e16.i686.rpm

Set the password for the root user and execute the command mysql_secure_installation

Log in to mysql:mysql-uroot-padmin

Modify mysql to allow remote access, execute the command grant all on *. * to 'root'@'%' identified by' admin'; flush privileges under the mysql command

Note:% represents any user.

The admin in admin' represents the password of the root account.

At this point, I believe you have a deeper understanding of "how to install MySql under Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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

Internet Technology

Wechat

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

12
Report