Re: PHP not seeing MySQL functions
| From: | PHP Superman | Date: | Sun, 22 Jan 2006 22:42:43 +0000 |
| Subject: | Re: PHP not seeing MySQL functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229043@lists.php.net to get a copy of this message | ||
did you uncomment the line that adds the proper php
module(mysqli_blahblahblah.dll)?
On 1/16/06, Jonathan Duncan <jonathan@nacnud.com> wrote:
>
> I just got a new web server with RedHat Enterprise Linux 4 on it. It came
> with MySQL 4.1.x and PHP 4.3.9 on it. I uninstalled the MySQL 4 and put
> MySQL 5 on it. When I run a PHP script that has a DB connection in it I
> get:
>
> Fatal error: Call to undefined function: mysql_connect() in
> /var/www/html/mysqltest.php on line 5
>
> I check the PHPINFO and see:
>
> Configure Command has '--with-mysql=shared,/usr'
>
> And "dbx" supported databases has 'MySQL'
>
> However, there is no MySQL section.
>
> I checked in the '/etc/php.ini' file and see:
>
> [MySQL]
> mysql.allow_persistent = On
> mysql.max_persistent = -1
> mysql.max_links = -1
> mysql.default_port =
> mysql.default_socket =
> mysql.default_host =
> mysql.default_user =
> mysql.default_password =
> mysql.connect_timeout = 60
> mysql.trace_mode = Off
>
>
> What is missing that would keep me getting the missing functions error? I
> restarted apache of course.
>
> Thanks,
> Jonathan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!