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

Mysql5.7 single instance command line installation (in windows environment)

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

I. download the installation package

II. Unzip to installation directory

D:\install_path

III. Add path environment variable

path=xxx;D:\install_path\bin

IV. Create parameter file

D:\install_path\bin\my.ini

Click here to fold or open

[client]port=3306[mysqld]port=3306basedir=D:\\mysqldatadir=D:\\mysql\\datacharacter-set-server=utf8max_connections=200default-storage-engine=INNODB[mysql]default-character-set=utf8

v. installation

mysqld -install mysql --defaults-file=D:\mysql\bin\my.ini (parameter file path)

Delete command:sc delete mysql

vi. initialize MySQL

mysqld --initialize-insecure

VII. start the service

D:\mysql\bin>net start mysql

The mysql service is starting.

The mysql service was started successfully.

VIII. Login and set password

mysql -uroot

mysql> set password=password('root');

Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

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

Database

Wechat

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

12
Report