当前位置:网站首页>Docker is equipped with the latest MySQL image
Docker is equipped with the latest MySQL image
2022-06-30 06:14:00 【Qiu cute】
docker run -p [** Own port mapping such as 3307]**:3306 --name [** Your container name **] -e MYSQL_ROOT_PASSWORD=[** Your password **] -d mysql:[**mysql Version number ]** --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci1251 error
1. Get into mysql Containersdocker exec -it Containers id bash [email protected]:/# mysql -uroot -p // Authorize remote connections : mysql> GRANT ALL ON *.* TO 'root'@'%';2. Change user password
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; to update user by root,host by % The password for 123456 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; to update user by root,host by localhost The password for 123456
边栏推荐
猜你喜欢
随机推荐
There is a group of students' score {99, 85, 82, 63, 60}. To add a student's score, insert it into the score sequence and keep the descending order
MySQL log management, data backup and recovery
谁不想要一个自己的博客网站呢 - 搭建博客网站wordpress
C language code record
Develop stylelint rules from zero (plug-ins)
Mariadb数据库的安装与初始化
CompletionService使用及原理(源码分析)
[regular expression series] greedy and non greedy patterns
ES6 array
Win10 /11 开热点无法上网问题
Share problems solved
[OSPF] comparison between rip and OSPF
旋转标注工具roLabelImg
DOM (document object model) document XML file object model
反編譯正常回編譯出現問題自己解决辦法
Official win 10 image download
Use of observer mode and status mode in actual work
从底层结构开始学习FPGA----RAM IP核及关键参数介绍
Title: enter two positive integers m and N to find their maximum common divisor and minimum common multiple
Detailed description of methods in the interface



![[ansible series] fundamentals -01](/img/b4/1f3284338c75acb5259849a45bbfbe.jpg)




