#docker pull mysql 拉取mysql
#docker run -di --name yixin_mysql -p
33306
:
3306
-e MYSQL_ROOT_PASSWORD=
123456
mysql 运行mysql
#docker exec -it pinyougou_mysql /bin/bash 进入容器操作mysql
#mysql -u root -p 登录mysql
#GRANT ALL ON *.* TO
'root'
@
'%'
;远程连接授权
#
flush privileges; 刷新权限
#ALTER USER
'root'
@
'localhost'
IDENTIFIED BY
'password'
PASSWORD EXPIRE NEVER; 更改加密规则
#ALTER USER
'root'
@
'%'
IDENTIFIED WITH mysql_native_password BY
'123456'
; 更新root账户密码
#
flush privileges; 刷新权限
#quit;
#exit;