Questions about mysql service suddenly can not run - "post-mysql service on the local computer start and stop, some ..."

 

1. Add the installation directory bin mysql database file path to your PATH environment, in order to allow cmd can directly enter the following related commands, or cd to the next bin mysql can also be

2.cmd input mysqld --initialize --user = mysql --console, will be a randomly generated password, keep

3. Try to start cmd enter net start mysql57 ( "musql57" is the name of the service list mysql)

4. it should fail to start, then enter mysqld.exe -install prompt Service successfully installed. Before trying to net strat mysql57

5. Next you can enter mysqladmin -u username] [-p password [new password]

Enter the old password will be prompted to enter when you enter the second part

If prompted

mysqladmin: [Warning] the Using A password ON at The the Command Line interface CAN BE InSe
Cure.
Warning: Since password by Will BE Sent to Server in Plain text, use ssl Connection
. to of Ensure password Safety is actually a new security mechanism mysql prompt password only enter the big problem of insecurity

Can enter mysql -uroot -proot -e 'show varibles' 2> / dev / nul removed 

Then you can start into service or net start mysql57 start the mysql service!

Guess you like

Origin www.cnblogs.com/itzyz/p/10978045.html