phpmyadmin 连接远程数据库 失败 但是 用命令可以登录
时间: 2015-07-24来源:开源中国
前景提要
HDC调试需求开发(15万预算),能者速来!>>>
【问题描述】
在虚拟机器centos 系统上 连接远程mysql服务器
用命令方式 可以远程登录
wang@localhost wordpress]$ mysql -h 10.73.144.231 -u root -p -P 3306 Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.6.20 MySQL Community Server (GPL)



说明 远程mysql 已经设置为任何机器都可以登录。原来命令方式不可以登录现在可以登录了

但是通过php程序方式就登录不上了
但是 我在centos 安装phpMyAdmin 是 配置文件修改了
/** * MySQL hostname or IP address * * @global string $cfg['Servers'][$i]['host'] */ $cfg['Servers'][$i]['host'] = '10.73.144.231'; /** * MySQL port - leave blank for default port * * @global string $cfg['Servers'][$i]['port'] */ $cfg['Servers'][$i]['port'] = '3306'; /** * Path to the socket - leave blank for default socket * * @global string $cfg['Servers'][$i]['socket'] */ $cfg['Servers'][$i]['socket'] = ''; /** * Use SSL for connecting to MySQL server? * * @global boolean $cfg['Servers'][$i]['ssl'] */





但是连接不上如何解决 无法登录


有遇到过的吗
请联系 qq:2563521318

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行