Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
S'inscrire
Connexion
SisMaker
/
noteDocs
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Tickets
0
Demandes d'ajout
0
Projects
0
Versions
0
Wiki
Activité
Parcourir la source
docker添加
master
maike
il y a 4 ans
Parent
88abddee93
révision
f936895969
1 fichiers modifiés
avec
17 ajouts
et
0 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+17
-0
docker/docker安装mysql.md
+ 17
- 0
docker/docker安装mysql.md
Voir le fichier
@ -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'@'%';
Écrire
Aperçu
Chargement…
Annuler
Enregistrer