File tree Expand file tree Collapse file tree 1 file changed +9
-20
lines changed Expand file tree Collapse file tree 1 file changed +9
-20
lines changed Original file line number Diff line number Diff line change @@ -25,27 +25,18 @@ Create data directory for mongo & mysql
25
25
26
26
Install MYSQL
27
27
28
- ` $ cd docker && fig run mysql `
28
+ ` $ cd docker && fig up `
29
29
30
30
31
- ` $ docker-enter docker_mysql_run_1 `
31
+ Into another terminal
32
32
33
+ ` $ docker-enter docker_mysql_1 `
33
34
34
- ` $ mysql_install_db && supervisorctl restart mysql `
35
-
36
-
37
-
38
- Install root user
39
-
40
- - Go to localhost:81/phpmyadmin (root - empty password)
41
35
42
- - Click on SQL and copy paste:
36
+ ` $ mysql_install_db && supervisorctl restart mysql `
43
37
44
- `GRANT ALL PRIVILEGES ON * .* TO 'root'@'%'
45
- IDENTIFIED BY ''
46
- WITH GRANT OPTION;
47
- FLUSH PRIVILEGES;`
48
38
39
+ ` $ mysql -uroot -e "GRANT ALL PRIVILEGES ON *.* TO 'dev'@'%' IDENTIFIED BY '' WITH GRANT OPTION; FLUSH PRIVILEGES;" `
49
40
50
41
51
42
Finaly
@@ -54,14 +45,11 @@ Finaly
54
45
55
46
Enable configuration file
56
47
57
- ` $ cd ../ && cp config.json.sample config.json `
58
-
59
- Run application
60
-
61
- ` $ fig up `
62
-
48
+ ` $ cd repository && cp config.json.sample config.json `
63
49
64
50
51
+ Usages
52
+ -------------------------
65
53
66
54
Mysql
67
55
@@ -77,6 +65,7 @@ terminal: `$ docker-enter docker_node_1`
77
65
78
66
79
67
Troubleshooting
68
+ -----------------------
80
69
81
70
mysql can't run
82
71
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
You can’t perform that action at this time.
0 commit comments