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 linux in MYSQL_5.7.23

2025-03-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

In this issue, the editor will bring you about how to install linux in MYSQL_5.7.23. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

1.OS environment configuration

1.1 check the RPM package

[root@mysql2 mysql] # rpm-e mariadb-libs-5.5.52-1.el7.x86_64-nodeps

[root@mysql2 mysql] # rpm-e mariadb-server-5.5.52-1.el7.x86_64-nodeps

[root@mysql2 mysql] # rpm-e mariadb-5.5.52-1.el7.x86_64-nodeps

[root@mysql2 mysql] # rpm-qa | grep mysql

1.2 check users

# id mysql

two。 Install mysql2.1 download installation media

Mysql-5.7.23-linux-glibc2.12-x86_64.tar.gz

2.2 decompress the installation media

[root@mysql2 soft] # tar-zxvf mysql-5.7.23-linux-glibc2.12-x86_64.tar.gz

[root@mysql2 soft] # cp-rp mysql-5.7.23-linux-glibc2.12-x86_64/* / usr/local/mysql/

2.3 modify file properties

[root@mysql2 mysql] # cd / usr/local/mysql

[root@mysql2 mysql] # chown-R mysql:mysql *

2.4 configure my.cnf Fil

[mysqld]

Bind-address=192.168.31.188

Port=3306

User=mysql

Basedir=/usr/local/mysql

Datadir=/u01/data

Socket=/tmp/mysql.sock

Log-error=/u01/data/mysql.err

Pid-file=/u01/data/mysql.pid

# character config

Character_set_server=utf8mb4

Symbolic-links=0

Explicit_defaults_for_timestamp=true

2.5 initialize the database

[root@mysql2 bin] # / mysqld-- defaults-file=/etc/my.cnf-- basedir=/usr/local/mysql/-- datadir=/u01/data-- user=mysql-- initialize

Get the password

GuRa.yku8ao_

3. Start the database

[root@mysql2 bin] # cp / usr/local/mysql/support-files/mysql.server / etc/init.d/mysql

[root@mysql2 bin] # service mysql start

[root@mysql2 bin] # ps-ef | grep mysql

4. Log into the database

[root@mysql2 bin] # mysql-uroot-p

Mysql > alter user 'root'@'localhost' identified by' Oracle123'

Mysql > flush privileges

This is how to install linux in the MYSQL_5.7.23 shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are 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.

Share To

Wechat

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

12
Report