docker,mysql,Navicat
Navicat破解网址 https://www.jianshu.com/p/5f693b4c9468 docker pull mysql docker run -d -p 3306:3306 --name mysql01 mysql/mysql-server docker logs mysql01 查看日志有默认密码 docker exec -it mysql01 bash 进入到容器里面 # mysql -uroot -p 默认是localhost,然后输入密码 use mysql 提示必须要改密码 修改用户密码 alter user 'root'@'localhost' identified by '123456'; SET PASSWORD FOR 'root'@'localhost' = PASSWORD('password123'); select user,host from user //user表显示信息 改信息 mysql> CREATE USER 'Anker'@ 'localhost' IDENTIFIED BY 'pwd123456'; mysql> GRANT ALL PRIVILEGES ON *.* TO 'Anker'@ 'localhost' WITH GRANT OPTION; mysql> CREATE USER 'Anker'@ '%'