MySQL Forums
Forum List  »  French

Re: debian 3.1: Call to undefined function: mysql_connect()
Posted by: Denis Quatrelivre
Date: November 23, 2008 12:30PM

Bonjour,

Apparemment ce sujet date déjà mais j'ai le même problème, pas sous debian mais mac os 10.4.11...

J'ai installé mysql, ça fonctionne bien en ligne de commande.
PHP, ça à l'air de tourner aussi.

Voici un extrait de phpinfo()...

Configure Command './configure' '--prefix=/usr/local/php5' '--with-zlib' '--with-xml' '--with-ldap=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysqli' '--enable-mysqlnd'

Configuration File (php.ini) Path /usr/local/php5/lib (en fait j'ai fait un lien vers un Sites/confs/php.ini

PATH /opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/apache2/bin/

mysqli
MysqlI Support enabled
Client API library version 5.0.67
Client API header version 5.0.67
MYSQLI_SOCKET /tmp/mysql.sock

Directive Local Value Master Value
mysqli.default_host no value no value
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket no value no value
mysqli.default_user no value no value
mysqli.max_links Unlimited Unlimited
mysqli.reconnect Off Off

Dans le php.ini j'ai :

cat /usr/local/php5/lib/php.ini | grep extension
extension=mysql.so
extension=mysqli.so

et

extension_dir /usr/local/php5/lib/php/extensions

Alors ça se gate parce que le chemin vers les extensions n'éxiste pas!!!! je ne sais pas quoi y faire.

Une idée sur mon problème ? Merci beaucoup.



Edited 1 time(s). Last edit at 11/23/2008 12:53PM by Denis Quatrelivre.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: debian 3.1: Call to undefined function: mysql_connect()
5432
November 23, 2008 12:30PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.