Skip to content

Commit 77c358c

Browse files
committed
2017-03-23补充MySQL相关
1 parent 77825be commit 77c358c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Mysql-Install-And-Settings.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@
9494
## 连接报错:Caused by: java.sql.SQLException: null, message from server: "Host '192.168.1.133' is not allowed to connect to this MySQL server"
9595

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

10099
## MySQL 主从复制
101100

0 commit comments

Comments
 (0)