惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Troy Hunt's Blog
P
Proofpoint News Feed
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
Cyberwarzone
Cyberwarzone
T
Tor Project blog
Cisco Talos Blog
Cisco Talos Blog
S
Securelist
L
Lohrmann on Cybersecurity
Security Latest
Security Latest
T
Threatpost
H
Heimdal Security Blog
W
WeLiveSecurity
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
GRAHAM CLULEY
IT之家
IT之家
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
TaoSecurity Blog
TaoSecurity Blog
A
About on SuperTechFans
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
Google DeepMind News
Google DeepMind News
量子位
Stack Overflow Blog
Stack Overflow Blog
Know Your Adversary
Know Your Adversary
B
Blog RSS Feed
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
AI
AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
Vercel News
Vercel News
C
Cyber Attacks, Cyber Crime and Cyber Security
Latest news
Latest news
D
Darknet – Hacking Tools, Hacker News & Cyber Security
大猫的无限游戏
大猫的无限游戏
Forbes - Security
Forbes - Security

博客园 - 找不到Object

57.基于springboot+vue的宠物领养平台 达梦数据库导出表结构到excel中 vware中centos虚拟机系统和宿主使用同一局域网 Excel中利用vba代码导出图片时以某一单元格内容重命名 vware中ubuntu虚拟机系统和宿主使用同一局域网 mysql查询近几天sql centos7离线安装docker liunx虚拟机VMware增加磁盘空间后,挂载磁盘 liunx服务器22端口开启 centos 7 NTP离线安装部署 centos7安装nginx nginx常用配置说明 centos7下安装docker VMware 虚拟机下CentOS 7连接网络 在JSP中使用el函数标签获取默认值(男女性别选项) ssm登录与退出 MVC(Model -View-Controller)实例应用模式 MVC模式 设计模式浅谈
centos7通过docker安装mysql
找不到Object · 2020-12-05 · via 博客园 - 找不到Object

1. 启动docker

2.查看mysql 版本

3. 安装最新mysql

docker pull mysql:latest;

4.安装最新版本mysql,我安装时最新的版本为8.0.22

docker pull mysql:latest;

 5. 查看docker镜像,并且为我们的mysql添加容器名称my_mysql,设置密码

docker run -itd --name my_mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql;

6.查看容器相关信息

7.进入mysql,需先进入容器

docker exec -it my_mysql bash;

8.此时如果用navicat 去连接可能无法连接成功,因为mysql 8需要改变默认的身份认证插件,查看身份认证插件

 SELECT Host, User, plugin from user;

 9.修改认证插件

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ' 123456';

FLUSH PRIVILEGES;

 10.查看mysql版本,进入容器执行mysql -V

11.如果centos下用其他用户是无法使用docker,可使用命令添加docker用户组

sudo groupadd docker #添加docker用户组

sudo gpasswd -a $USER docker #将登陆用户加入到docker用户组中

newgrp docker #更新用户组