安装MySQL(无管理员权限)

Install MySQL without administrator permission

Step:

1.Download

https://dev.mysql.com/downloads/file/?id=482489
or
https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.24-win32.zip

2.Configuration ENV

PATH
C:\swdtools\mysql-5.7.24-win32\bin
my.ini
[client]
port=3306
[mysqld]
character-set-server=utf8
[mysql]
default-character-set=utf8

3.Initialization

mysqld --initialize or {MySQL}\\bin\\mysqld --initialize

4.Run Service

mysqld --console or {MySQL}\\bin\\mysqld --console

5.View Password

{MySQL}\data\{computer name}.err
A1029303WQWE12.err
2019-02-19T06:09:53.048539Z 1 [Note] A temporary password is generated for root@localhost: Vr=uczu>!6Mb

6.Login Service

mysql -uroot -p

7.Update Password

set password for root@localhost = password('123456');

猜你喜欢

转载自blog.csdn.net/flw8840488/article/details/87711371
今日推荐