Skip to content

Commit ed006dc

Browse files
committed
improve readme
1 parent 9af7478 commit ed006dc

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed

README.MD

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,18 @@ Create data directory for mongo & mysql
2525

2626
Install MYSQL
2727

28-
`$ cd docker && fig run mysql`
28+
`$ cd docker && fig up`
2929

3030

31-
`$ docker-enter docker_mysql_run_1`
31+
Into another terminal
3232

33+
`$ docker-enter docker_mysql_1`
3334

34-
`$ mysql_install_db && supervisorctl restart mysql`
35-
36-
37-
38-
Install root user
39-
40-
- Go to localhost:81/phpmyadmin (root - empty password)
4135

42-
- Click on SQL and copy paste:
36+
`$ mysql_install_db && supervisorctl restart mysql`
4337

44-
`GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'
45-
IDENTIFIED BY ''
46-
WITH GRANT OPTION;
47-
FLUSH PRIVILEGES;`
4838

39+
`$ mysql -uroot -e "GRANT ALL PRIVILEGES ON *.* TO 'dev'@'%' IDENTIFIED BY '' WITH GRANT OPTION; FLUSH PRIVILEGES;"`
4940

5041

5142
Finaly
@@ -54,14 +45,11 @@ Finaly
5445

5546
Enable configuration file
5647

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`
6349

6450

51+
Usages
52+
-------------------------
6553

6654
Mysql
6755

@@ -77,6 +65,7 @@ terminal: `$ docker-enter docker_node_1`
7765

7866

7967
Troubleshooting
68+
-----------------------
8069

8170
mysql can't run
8271
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/

0 commit comments

Comments
 (0)