John Tate wrote:
Right, I created a hardlink of the socket into
/var/www/mysql/mysql.sock and changed this directive in php.ini to the
following...

mysql.default_socket = /var/www/mysql/mysql.sock

I however could not find the my.cnf file, where is it on OpenBSD 3.6,
I did a "find / | grep my.cnf" which showed up nothing.

Hi John
The 'my.cnf' is a file you make yourself (both on server and on clients) depending on your needs. A bit like you do with 'boot.conf' and 'mk.conf'.
On the server you place it in /etc for global options.
On the client you place it in ~

I use it for e.g. SSL (*.pem locations) on the server and client and on the client also for hosts, compress and other features.

The mysql people has a brilliant site/documentation!
I'm not particular thrilled about SAMS but they've published a few brilliant books on both MySQL and PostgreSQL.

MySQL, 3ed (new)
ISBN 0672326736
Paul DuBois

PostgreSQL
ISBN 0735712573
Korry Douglas/Susan Douglas

/per
[EMAIL PROTECTED]


From phpinfo()...

MySQL Support   enabled
Active Persistent Links         0
Active Links    0
Client API version      4.0.20
MYSQL_MODULE_TYPE       external
MYSQL_SOCKET    /var/run/mysql/mysql.sock
MYSQL_INCLUDE   -I/usr/local/include/mysql
MYSQL_LIBS      -L/usr/local/lib -lmysqlclient

Directive       Local Value     Master Value
mysql.allow_persistent  On      On
mysql.connect_timeout   60      60
mysql.default_host      no value        no value
mysql.default_password  no value        no value
mysql.default_port      no value        no value
mysql.default_socket    /var/www/mysql/mysql.sock       
/var/www/mysql/mysql.sock
mysql.default_user      no value        no value
mysql.max_links Unlimited       Unlimited
mysql.max_persistent    Unlimited       Unlimited
mysql.trace_mode        Off     Off

Reply via email to