当前位置:网站首页>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
边栏推荐
猜你喜欢

CompletableFuture从了解到精通,你想知道的这里都有

Jgaurora A8 configuration file

MySQL advanced SQL statement

Use of observer mode and status mode in actual work

我做功能测试这么多年的心得

Application of redis client list in practice

DHCP operation

Configure the user to log in to the device through telnet -- AAA local authentication

MySQL事物
![[GPU] basic operation of GPU (I)](/img/ce/0ca8c63525038fea64c40aabd17fc6.jpg)
[GPU] basic operation of GPU (I)
随机推荐
Voting vault: a new primitive for defi and Governance
接口中方法详解
Prototype and prototype chain in JS
MySQL事物
从底层结构开始学习FPGA----RAM IP核及关键参数介绍
Variable parameters of go
图像处理7-图像增强
Basic use of markdown
[openstack]-01- basic introduction
MySQL transaction
文件操作IO-Part1
Detailed description of methods in the interface
[MD editing required] welcome to the CSDN markdown editor
Several commands not commonly used in MySQL
Title: enter two positive integers m and N to find their maximum common divisor and minimum common multiple
[deep learning] data segmentation
Uniapp wechat applet returns to the previous page and refreshes
MySQL storage system
Rotate dimension tool rolabelimg
从零开发 stylelint规则(插件)