Home > php教程 > php手册 > body text

phpmyadmin连接远程数据库配置方法

WBOY
Release: 2016-05-25 16:47:32
Original
987 people have browsed it

找到你phpmyadmin目录中的config.inc.php文件并用DW打开(注意千万不能使用记事本打开哦,如果是uft8编码的文件就怕有问题)

找到['host'] 后的 'localhost'改为远程数据库IP

实例代码如下:

$cfg['Servers'][$i]['host']    = '192.168.1.10';
Copy after login

注:192.168.1.10  是远程数据库的IP

最后再重启动一下mysql,命令模式如下

改完后---开始菜单----运行----cmd(回车)----net stop mysql(回车)--------net start mysql(回车)

如果不会命令方法我们可以进入电脑的服务控制台,然后在应用服务器找到mysql.exe就可以重启了.

永久链接:

转载随意!带上文章地址吧。

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!