Skip to content

Commit 13ea2d3

Browse files
authored
Update README.md
1 parent 87ca80c commit 13ea2d3

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,44 @@ sudo docker system prune --all
7474
sudo chmod -R ugo+rw storage/logs
7575
sudo chmod -R ugo+rw bootstrap/cache
7676
```
77+
78+
###if you can see this error above when you access phpmyadmin you can use solutions this below
79+
80+
fix fix mysqli::real_connect(): (HY000/1130): Host 'ip address' is not allowed to connect to this MySQL server
81+
82+
you need adjust with config docker-compose.yml for use this bellow solutions: <br>
83+
contaner name for mysql : mysql <br>
84+
mysql_root_password : temp123 <br>
85+
mysq user : root <br>
86+
mysql user password : temp123 <br>
87+
this error happened because config mysql_root_password, user database anda password user database cannot regiestered on user host mysql.
88+
<br>
89+
90+
* Access terminal mysql container
91+
```bash
92+
sudo docker exec -ti contaner_mysql_name bash
93+
```
94+
* Login to mysql
95+
```bash
96+
mysql -u root -p
97+
```
98+
99+
* Change password mysql root
100+
```bash
101+
ALTER USER 'root'@'localhost' IDENTIFIED BY 'PASSWORD';
102+
```
103+
104+
* Check existing database users
105+
```bash
106+
SELECT host, user FROM mysql.user;
107+
```
108+
109+
* Add user mysql
110+
```bash
111+
CREATE USER 'root'@'%' IDENTIFIED BY 'your_password_root';
112+
```
113+
114+
* Grant All Privilages database
115+
```bash
116+
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
117+
```

0 commit comments

Comments
 (0)