我是靠谱客的博主 坚强墨镜,这篇文章主要介绍mysql connect mac_解决在苹果cms在XAMPP环境下报错问题Msg: mysql_connect() [function.mysql-connec......,现在分享给大家,希望可以做个参考。

出现故障信息:

Deprecated: Assigning the return value of new by reference

is deprecated in E:xamppphpPEARConfig.php on line 80

Deprecated:

Assigning the return value of new by reference is deprecated in

E:xamppphpPEARConfig.php on line 166

系统提示:

Msg: mysql_connect()

[function.mysql-connect]: php_network_getaddresses: getaddrinfo failed:

File: E:xampphtdocsmaccmsincclass.php

Line:

9

这是由于xampp环境自带的PEAR引起的。

解决办法:

简单的处理办法,用编辑器打开修改 苹果cms的

inc/conn.php 文件,

把require_once ("config.php");

修改为 require_once

(dirname(__FILE__)."/../inc/config.php");

最后

以上就是坚强墨镜最近收集整理的关于mysql connect mac_解决在苹果cms在XAMPP环境下报错问题Msg: mysql_connect() [function.mysql-connec......的全部内容,更多相关mysql内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(41)

评论列表共有 0 条评论

立即
投稿
返回
顶部