服务器层面
1、修改mysql启动的端口号
2、防火墙,禁止所有非合法IP对mysql发起的连接请求。
Mysql安全配置
- Do not ever give anyone (except MySQL root accounts) access to the user table in the mysql database。
- Do not grant more privileges than necessary. Never grant privileges to all hosts.
- Do not store cleartext passwords in your database.
- 待续…