This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
SisMaker
/
noteDocs
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
docker添加
master
maike
4 years ago
parent
88abddee93
commit
f936895969
1 changed files
with
17 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+17
-0
docker/docker安装mysql.md
+ 17
- 0
docker/docker安装mysql.md
View File
@ -0,0 +1,17 @@
# docker 下载mysql
dcoker pull mysql:版本
# 启动mysql
docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=密码 -d mysql:版本
# 进入容器
docker exec -it mysql bash
# 登录mysql
mysql -u root -p
ALTER USER 'root@'localhost' IDENTIFIED BY 'starunion';
# 添加远程登录用户 直接用root用户登录也行
CREATE USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '密码';
GRANT ALL PRIVILEGES ON
*.*
TO 'root'@'%';
Write
Preview
Loading…
Cancel
Save