Skip to content

Commit 34cb843

Browse files
authored
Update Mysql-Install-And-Settings.md
1 parent 89881df commit 34cb843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Mysql-Install-And-Settings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
- 把密码改为:123456,进入 MySQL 命令后执行:`UPDATE user SET Password=PASSWORD('123456') where USER='root';FLUSH PRIVILEGES;`
9292
- 然后重启 MySQL 服务:`service mysql restart`
9393

94-
## 连接报错:Caused by: java.sql.SQLException: null, message from server: "Host '192.168.1.133' is not allowed to connect to this MySQL server"
94+
## 连接报错:"Host '192.168.1.133' is not allowed to connect to this MySQL server"
9595

9696
- 不允许除了 localhost 之外去连接,解决办法,进入 MySQL 命令行,输入下面内容:
9797
- `GRANT ALL PRIVILEGES ON *.* TO '数据库用户名'@'%' IDENTIFIED BY '数据库用户名的密码' WITH GRANT OPTION;`
@@ -172,4 +172,4 @@
172172

173173
## 资料
174174

175-
- <http://www.cnblogs.com/xiongpq/p/3384681.html>
175+
- <http://www.cnblogs.com/xiongpq/p/3384681.html>

0 commit comments

Comments
 (0)