当前位置:网站首页>Part 3: docker installing MySQL container (custom port)
Part 3: docker installing MySQL container (custom port)
2022-04-23 13:21:00 【Da Linzi xiansen】
First step : Download mirroring
docker pull mysql:5.7
The second step : Create an instance and start
docker run -p 3306:3306 --name mysql \ -v /mydata/mysql/log:/var/log/mysql \ -v /mydata/mysql/data:/var/lib/mysql \ -v /mydata/mysql/conf:/etc/mysql \ -e MYSQL_ROOT_PASSWORD=root \ -d mysql:5.7
The third step : Get into mysql The command line interface of the container
docker exec -it mysql /bin/bash
Step four : Sign in mysql
mysql -u root -p
Step five : To configure
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
init_connect='SET collation_connection = utf8_unicode_ci'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake
skip-name-resolve
Step six : Set boot up mysql
docker update mysql --restart=always
Step seven : Turn off startup mysql
docker update mysql --restart=no
版权声明
本文为[Da Linzi xiansen]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230605322291.html
边栏推荐
- 数据仓库—什么是OLAP
- LeetCode_ DFS_ Medium_ 695. Maximum area of the island
- mui picker和下拉刷新冲突问题
- playwright控制本地谷歌浏览打开,并下载文件
- Detailed explanation of ADB shell top command
- mysql 基本语句查询
- Solve the problem of Oracle Chinese garbled code
- Mui close other pages and keep only the first page
- The filter() traverses the array, which is extremely friendly
- [point cloud series] full revolutionary geometric features
猜你喜欢

UEFI learning 01-arm aarch64 compilation, armplatformpripeicore (SEC)

数据仓库—什么是OLAP

2020年最新字节跳动Android开发者常见面试题及详细解析

CSDN College Club "famous teacher college trip" -- Hunan Normal University Station

The filter() traverses the array, which is extremely friendly

解决Oracle中文乱码的问题

面试官给我挖坑:单台服务器并发TCP连接数到底可以有多少 ?
![[point cloud series] foldingnet: point cloud auto encoder via deep grid deformation](/img/c0/cc29ae6948dbe42954cd9da326ef77.png)
[point cloud series] foldingnet: point cloud auto encoder via deep grid deformation

X509 parsing
![[point cloud series] neural opportunity point cloud (NOPC)](/img/ba/24417762ef5c52d2d6b57f18a3b0a2.png)
[point cloud series] neural opportunity point cloud (NOPC)
随机推荐
How to convert opencv pictures to bytes
2020年最新字节跳动Android开发者常见面试题及详细解析
What do the raddr and rport in webrtc ice candidate mean?
TCP 复位gongji原理和实战复现
鸿蒙系统是抄袭?还是未来?3分钟听完就懂的专业讲解
【微信小程序】flex布局使用记录
[point cloud series] so net: self organizing network for point cloud analysis
nodeJs + websocket 循环小案例
FatFs FAT32 learning notes
这几种 VSCode 扩展是我最喜欢的
[wechat applet] flex layout usage record
playwright控制本地谷歌浏览打开,并下载文件
MySQL5. 5 installation tutorial
innobackupex增量备份
十万大学生都已成为猿粉,你还在等什么?
Imx6ull QEMU bare metal tutorial 2: usdhc SD card
AUTOSAR from introduction to mastery 100 lectures (87) - key weapon of advanced EEA - AUTOSAR and DDS
CSDN College Club "famous teacher college trip" -- Hunan Normal University Station
Example interview | sun Guanghao: College Club grows and starts a business with me
[point cloud series] summary of papers related to implicit expression of point cloud