|
@@ -44,7 +44,7 @@
|
|
|
|
|
|
Do it step by step following the prompt.
|
|
|
|
|
|
-5. Grant specific ip to access this mysql server.
|
|
|
+6. Grant specific ip to access this mysql server.
|
|
|
|
|
|
Enter mysql console:
|
|
|
|
|
@@ -72,6 +72,14 @@
|
|
|
exit;
|
|
|
```
|
|
|
|
|
|
+ From some version on (maybe mysql 5.7.6?), `GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'your-password' WITH GRANT OPTION` is deprecated. If you try with that, you'll get errors like this:
|
|
|
+
|
|
|
+ ```console
|
|
|
+ ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY '123456' WITH GRANT OPTION' at line 1
|
|
|
+ ```
|
|
|
+
|
|
|
+ So don't try `GRANT ALL xxx`, just do it as mentioned above (CREATE USER and GRANT).
|
|
|
+
|
|
|
6. Configure your mysql server to allow dedicated IPs to access.
|
|
|
|
|
|
First, backup mysql server configuration file:
|