You connect over SSH (with security), you open mysql with root password - I hope this password NOT root of nas4ree
When you type
- Code: Select all
mysql> select User,Host from mysql.user;
Server ask for first time
+------+----------------+
| User | Host |
+------+----------------+
| root | 127.0.0.1 |
|. . . .| localhost |
| root | localhost |
|. . . .| nas4free.local |
| root | nas4free.local |
+------+----------------+
5 rows in set (0.00 sec)
If you not have user
root from host
all for security, you not have access as root to your building.
For example, I try connect from my PC to created now mysql
Welcome to Microsoft Telnet Client
Escape Character is 'CTRL+]'
Microsoft Telnet> open 10.0.0.50:3306
Connecting To 10.0.0.50:3306...Could not open connection to the host, on port 23
: Connect failed
Microsoft Telnet> open 10.0.0.50 : 3306
Connecting To 10.0.0.50...Could not open connection to the host, on port : 3306:
Connect failed
Microsoft Telnet>
Next step - create users for aplication without GRANT privileges. If users not need access from another host, for example:
1. You have any CMS as Drupal, runing on your nas4free. You not need access as mysql user from local network, all work from localhost.
In this case close over firewall mysql port on nas4free
2. You have any application on another host, uses your nas4free mysql.
In this case create users defined by hostname, where your application running. Also you can close access over firewall to your mysql, exclude host, where your application running
P.S - Thank you for remember, I find bug and need update manual for nas4free full and ebedded instalation. Check pls folder /mnt/<your disk>/mysql/mysql need have permissions 777