Home > Backend Development > PHP Tutorial > 设置mysql只有指定的ip地址可以访问,该怎么解决

设置mysql只有指定的ip地址可以访问,该怎么解决

WBOY
Release: 2016-06-13 12:55:47
Original
1223 people have browsed it

设置mysql只有指定的ip地址可以访问
为了加强服务器的安全,设置只有指定的ip地址才可以访问phpmyadmin和命令行,请问如何操作
------解决方案--------------------
phpmyadmin要在web服务器前端处理,就是apache,nginx级别
命令行只要做好mysql的权限,不给%主机权限即可
------解决方案--------------------
好像是在mysql数据库里面的user表,可以从里面添加要可以访问ip
------解决方案--------------------
在phpmyadmin的目录下做一个.htaccess的限制文件即可。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template