佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 986|回复: 5

PHP连接不到MySQL

[复制链接]
发表于 18-4-2014 10:46 AM | 显示全部楼层 |阅读模式
出现以下错误讯息:
PHP Fatal error:  Call to undefined function mysql_connect() in。。。。。line
请问怎样解决呢?
回复

使用道具 举报


ADVERTISEMENT

发表于 18-4-2014 05:32 PM | 显示全部楼层
可以看看你的 source code 吗?
回复

使用道具 举报

发表于 21-4-2014 09:48 AM | 显示全部楼层
make sure you got define that function. if that's php predefine function, you can check whether your php got support to this function or not and whether you got typo or not. But for your case, i guest related to this
  Warning   
This extension is deprecated as of PHP 5.5.0, and will be removed in the future.Instead, the MySQLi or PDO_MySQL extension should be used.See also MySQL: choosing an API guide andrelated FAQ for more information. Alternatives to this function include:
     


本帖最后由 joe_dirt38 于 21-4-2014 09:50 AM 编辑

回复

使用道具 举报

发表于 22-4-2014 04:22 PM | 显示全部楼层
大哥,你要人帮忙也得给人看看你的connection string 吧
没有sample 单单 error code 帮不到你
回复

使用道具 举报

发表于 26-4-2014 09:31 PM | 显示全部楼层
mysql 没connect 到 php 吧?

coding 方面 post 来看看, 还有 mysql table and name
回复

使用道具 举报

发表于 28-5-2014 11:14 AM | 显示全部楼层
PHP configure对了吗?ext又没有enable?
回复

使用道具 举报

Follow Us
您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 18-5-2024 07:31 AM , Processed in 0.059615 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表