mysql5.7 windows installation

Execute the command:
mysqld --initialize --user=mysql --console
has a password at the end

Execute the command:
mysqld --install MySQL


net start mysql

log in to mysql and



change the password
set password for root@localhost = password('123456');



open the task plan
set global event_scheduler =1;

show variables like '%sche%';

Enable remote login
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY '12345678' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%'IDENTIFIED BY '12345678' WITH GRANT OPTION;
FLUSH PRIVILEGES

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326523526&siteId=291194637
Recommended