Re: MySQL_connect

From: Date: Wed, 06 Mar 2002 15:41:14 +0000
Subject: Re: MySQL_connect
Groups: php.db 
Request: Send a blank email to php-db+get-17512@lists.php.net to get a copy of this message
> On Wednesday 06 March 2002 15:53, Mikael_Jensen@Dell.com wrote: > >> Hi, >> >> I'm new to MySql, when I try to connect my PHP-script with >> mysql_connect($host, $user, $pass) >> my script returns the error >> "Fatal error: Call to undefined function: mysql_connect()" >> I have given the user all rights in MySQL, both on host, DB, tables, >> and fields >> >> This might be easy for you, but I'm stuck..any help / comments are >> appreciated > > It means you do not have mysql support in PHP. If you compiled PHP > yourself, recompile it to include mysql support. If you installed it > via RPM then look for the appropriate RPMs from distro vendor. A great way to check this is to create a simple script called phpinfo.php with just this line in it, place it in your top level web directory: <? phpinfo(); ?> Point your browser to http://localhost/phpinfo.php (assuming the computer you are using is your web server) You should see the ./configure command used to compile PHP, look for --with-mysql. Josh

« previous php.db (#17512) next »