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

MySQL initializes the installation

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

Share

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

Download the mysql compiled package and extract it to / export/local/ (depending on your usage)

Add mysql users and user groups

1 、 groupadd mysql

2. Useradd-r-g mysql mysql

II. Initialization of mysql data directory

1 、 mkdir / data/mysql/data

2. Chown-R mysql:mysql / data/mysql/data

/ export/local/mysql/bin/mysqld-- defaults-file=/etc/my_3700.cnf-- initialize-- user=mysql-- basedir=/export/local/mysql-- datadir=/data/mysql/data

# # initialization

Description:-- basedir is the mysql installation path, which is installed in the / export/local/ directory

-- datadir is the mysql data directory

Important:

Note the temporary password generated by recording here, as shown above: GleB (RP14p)

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: 223

*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

Database

Wechat

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

12
Report