MySql 5.7 Archive version of the installation process failed to solve

Download  https://dev.mysql.com/downloads/mysql/5.7.html#downloads

The network Tutorial:

Created my.ini file, and fill in the configuration contents:

[mysql]
# Mysql client to set the default character set
default-character-set=utf8
[mysqld]
Set # 3306 Port
port=3306
# Set the mysql installation directory
basedir=D://Software//mysql-5.7.26-winx64
# Set the data storage directory of mysql database
datadir=D://Software//mysql-5.7.26-winx64//data
# Maximum number of connections allowed
max_connections=200
# Server default character set used for the 8-bit coded character set latin1
character-set-server=utf8
The default storage engine that will be used when creating a new table #
default-storage-engine=INNODB

 Found no data folder, not the case, do not have to create my own is their own creation, many errors.

my.ini encoding format should ANSI, it is possible to use Notepad open into UTF-8, the same error.

1. mysqld --initialize

2. mysqld install

3. net start mysql

 

(Delete service command: mysqld -remove)  

It should be on it, if not enough, adding environment variables.

 

Default password No password mysql -u root -p Enter to log in, and then set a password:

update mysql.user set authentication_string=password('1234') where user='root' and Host = 'localhost';

It has changed after 5.7.

quit;

End

 

Guess you like

Origin www.cnblogs.com/LessNull/p/11080082.html