设置Mysql数据库账号密码以及时区

use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
FLUSH PRIVILEGES;    

set global time_zone='+8:00'

 

posted @ 2019-07-16 22:32  温碧泉  阅读(227)  评论(0编辑  收藏  举报