The first step is to create a mysql containerdocker exec -it container ID /bin/bash Step 2: Connect to MySQLmysql -uroot -p After entering the password, log in to the MySQL terminal Step 3: Change passwordSET PASSWORD FOR 'root' = PASSWORD('set password'); Step 4: RestartRestart the mysql container docker restart container id Supplement: Docker starts the MySQL container to start the initialization default password problem -e MYSQL_ROOT_PASSWORD docker run -p 3308:3308 --name=mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.6 Initializing database [root@localhost mugutu]# docker run -p 3308:3308 --name=mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.6 Initializing database 2018-12-02 13:42:53 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-12-02 13:42:53 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap. 2018-12-02 13:42:53 0 [Note] /usr/sbin/mysqld (mysqld 5.6.41) started as process 32 ... The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. If there are any mistakes or incomplete considerations, please feel free to correct me. You may also be interested in:
|
<<: Scoring rules of YSlow, a webpage scoring plugin developed by Yahoo
>>: Use of filter() array filter in JS
Table of contents Preface 1.v-show 2.v-if 3. The ...
Table of contents Main issues solved 1. The data ...
1. Download the ubuntu16.04 image and the corresp...
Table of contents in conclusion Practice Analysis...
Overview The project was created successfully and...
Preface Anyone who has learned JavaScript must be...
1. Create table statement: CREATE TABLE `employee...
Table of contents 1. Background Architecture Prob...
1. Installation package preparation VMware-player...
Table of contents How to set cookies Disadvantage...
1. Multiple calls to single arrow Once a single a...
In the past few days, the website has been access...
Table of contents 1 Create configuration and data...
How to use CSS to control the arc movement of ele...
CentOS8 was released a few days ago. Although it ...