4 messages in com.mysql.lists.mysqlRe: my.cnf values in PHP's libmysql i...
FromSent OnAttachments
Clay Loveless19 Jun 2002 16:35 
Paul DuBois19 Jun 2002 16:45 
Clay Loveless19 Jun 2002 23:15 
Basil Hussain20 Jun 2002 03:32 
Subject:Re: my.cnf values in PHP's libmysql implementation?
From:Paul DuBois (pa@snake.net)
Date:06/19/2002 04:45:29 PM
List:com.mysql.lists.mysql

At 16:35 -0700 6/19/02, Clay Loveless wrote:

I'm not sure where the best place to ask this question is -- since I believe the MySQL team writes much of the code for PHP's MySQL functionality, I'm hoping this is a good place.

Is there a way to get the MySQL client that's embedded into PHP to read [client] values from my.cnf?

"php.ini" only allows for:

mysql.allow_persistent mysql.max_persistent mysql.max_links mysql.default_host mysql.default_user mysql.default_password mysql.default_port mysql.default_socket

I've tried putting a "my.cnf" file in /etc/my.cnf, as well as a ".my.cnf" in the home directory of the Apache/PHP process, and both appear to be ignored by the embedded MySQL client in PHP.

Is there any other way to get some [client] values picked up & recognized?

I think there was talk at some point of allowing options to mysql_connect() analogous to the mysql_read_default_{file,group} options supported by DBI->connect(), but I don't know where that stands.

Thanks, Clay