mysql zip installed

 

Download the zip file to extract the installation directory, there is no data at this time my.ini files and folders.

 

 

 

1. First, their new my.ini, reads as follows:

[client]
port=3306
default-character-set=utf8

[mysqld]
# to their installation directory MYSQL
the basedir = E: \\ \\ win10soft-MySQL 8.0.17-Winx64
# MYSQL data directory set
datadir = E: \\ win10soft \\ mysql -8.0.17-winx64 the Data \\
Port = 3306
character_set_server = utf8
Shared-Memory # add the phrase to resolve the error: [eRROR] [MY-010131 ] [Server] TCP / IP, --shared-memory, or --named-pipe should be configured on OS NT
# sql_mode = NO_ENGINE_SUBSTITUTION, NO_AUTO_CREATE_USER
# open the query cache
explicit_defaults_for_timestamp to true =
Skip-Grant-the Tables

 

2. Add the environment variable E: \ win10soft \ mysql-8.0.17-winx64 \ bin

 

3. Open the administrator cmd:

run:

mysqld --install (installation)

mysqld --initialize (initialization, my.ini will automatically create data files according to the folder)

net start mysql (run)

mysql -u root (password-free login)

flush privileges; (refresh MYSQL permissions)

alter user 'root'@'localhost' identified by 'App123';(修改密码)   或者:update user set authentication_string=PASSWORD('App123') where user='root';

 

 

After you change your password, exit;

Then skip-grant-tables my.ini commented in the net stop mysql and then net start mysql (or mysqld restart) Restart Service mysql

Then you can log in mysql -uroot -pApp123

After logging execution show databases; showcase all tables in the database.

 

4. problem, you can go to the following err data folder inside view the error log file.

 

5. With regard to change the password can also refer to this article: https://blog.csdn.net/weixin_40396510/article/details/79277731

   About my.ini can refer to: https://blog.csdn.net/lienfeng6/article/details/78140404

 

 

Guess you like

Origin www.cnblogs.com/Greenwood/p/11614298.html