Skip to content

Commit 77825be

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Mysql-Install-And-Settings.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
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"
95+
96+
- 不允许除了 localhost 之外去连接,解决办法,进入 MySQL 命令行,输入下面内容:
97+
- `GRANT ALL PRIVILEGES ON *.* TO ‘数据库用户名’@'%’ IDENTIFIED BY ‘数据库用户名的密码’ WITH GRANT OPTION;`
9498

9599

96100
## MySQL 主从复制

0 commit comments

Comments
 (0)