1、启动/停止数据库服务
C:\SelfInstall\mysql-8.0.26-winx64\bin>net stop mysql
C:\SelfInstall\mysql-8.0.26-winx64\bin>net start mysql
2、登录指令
mysql -u root -p
3、IDE连接数据库报时区不对问题:Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually.
查看: show variables like "%time_zone";
时区为SYSTEM时,需要修改mysql里的时区
修改:set time_zone = '+8:00';