Windows platform:
Select User () to view the current login username
mysql-uroot-p123 switch to root account login
Mysqladmin-uroot-p password "123" to modify the root account password
Mysqld--install MySQL into a system service
Mysqld--remove removal from system service
NET Start/stop MySQL shutdown or turn on MySQL service
MYSQLD--skip-grant-tables Skip Authorization table binding MySQL Service
Update Mysql.user Set Password=password ("111") where user= "root" and host= "localhost" to the user table resets the root account password. Crack password
Flush privileges After changing the password, refresh the authorization form
tasklist |findstr MySQL to find MySQL process
taskkill/f/pid 8920 force kill MySQL Process
Linux platforms:
Systemctl stop/start MySQL kill MySQL Service
Mysqld_safe--skip-grant-tables Skip Authorization table binding MySQL Service
pkill-9 MySQL kill MySQL process
Mac Platform:
Mysqld_safe--skip-grant-tables Skip Authorization table binding MySQL Service
PS aux |grep mysql find MySQL process number
Kill-9 6334 forced Kill process
MySQL password setup and hack