NET HELPMSG 3534 to resolve an error occurred while extracting about mysql version configuration

1. Unzip the downloaded file to a custom location

2. In the extracted directory, create a new my.ini file, as follows:

[mysql]
default-character-set=utf8
[mysqld]
port=3306
basedir="C:\mq-install\mysql-5.7.28-winx64"
datadir="C:\mq-install\mysql-5.7.28-winx64\data"
max_connections=200
character-set-server=utf8
default-storage-engine=INNODB

3. configure the environment variables, as follows:

This computer (win10) -> Properties -> Advanced System Settings -> Environment Variables -> Path, add "custom location \ bin", such as D: \ Program Files \ mysql-5.7.27-winx64 \ bin

4. Use Administrator cmd to open the input mysqld install

NET HELPMSG 3534 to resolve an error occurred while extracting about mysql version configuration
Then enter net start mysql

Appeared------"

MySQL service is starting ....

MySQL service failed to start.

The service did not report any errors. Type NET HELPMSG 3534 to get more help.

When entering net start mysql start Mysql service, display MySQL service is starting .... MySQL service failed to start.

"This error --------

Enter mysqld -console can see the specific error message on the console
[ERROR] appears next record their
input command mysqld -initialize
input mysqld -console see what error messages reported
me because of their built data folders caused this after that removed data folder and then comment datadir under my.init file
after deleting input mysqld --initialize again
and start the start MySQL NET
MySQL service is starting ...
MySQL service has started successfully.

I suspect that here after extracting file may be a problem, it will extract the files to delete and then decompress, but before this time the installation is the presence of residual, so the need
NET HELPMSG 3534 to resolve an error occurred while extracting about mysql version configuration
arise already been explained that the remaining
re-open an administrator cmd
enter the command sc View mysql query mysql service called the
NET HELPMSG 3534 to resolve an error occurred while extracting about mysql version configuration
input command sc delete mysql, delete the mysql
NET HELPMSG 3534 to resolve an error occurred while extracting about mysql version configuration
then execute mysqld --install will be able to succeed

After the successful landing configuration

Enter mysql -uroot -p
here due to the randomly generated password mysqld --initialize not so landing

Finally, add in the my.ini file on: skip-grant-tables
and then restart mysql
start after the first stop
net start mysql
input mysql -uroot -p
modified after entering the password:
use mysql;
Update the User the SET password = password ( '12345' ) where user = 'root';
Note: I mysql is 5.7.28, if the implementation of the above update will be error
ERROR 1054 (42S22) Unknown column ' password' in 'field list'

The cause of the error is mysql database under the 5.7 version has no password this field of, password field into a authentication_string
Update the mysql.user the SET authentication_string = password ( ' ') the WHERE the User = ' '; # Change Password Success

Effective immediately: flush privileges;
quit
quit skip-grant-tables after the restart mysql after my.ini add comments, and use the password

MySQL prompt enter any statements You must reset your password using ALTER USER solution

Installation and configuration is complete on Win10 MySQL-5.7.22, modify the password and log in the first time, no matter what the input sentence, an error statement prompted "You must reset your password using ALTER USER ..." have emerged, the solution as follows:

SET PASSWORD = PASSWORD ( 'new password');
the ALTER the USER 'root' @ 'localhost' PASSWORD EXPIRE NEVER;
FLUSH PRIVILEGES;
after quit, again using the new password to operate the.

Guess you like

Origin blog.51cto.com/11585002/2461341