> > 'dsn' =>
> > 'mysql://dbusername:password@localhost:/tmp/mysql.kershaw/databas
> > ename',
After numerous (private) e-mails back and forth, John
and I have figured out the problem. What it boils
down to is:
If you want/have to connect to your mysql server via
unix (rather than inet/tcp) sockets, you should:
1. Make sure you are using recent Pear code,
such as that which now ships with PhpWiki.
2. Use DSNs like:
'mysql://user:pw@unix(/path/to/mysql.socket)/dbname'
Probably, using the ADODB backend (if your
PhpWiki is recent enough) instead of the Pear-based
backend would work, too.
With older Pear code (including that which ships
with most distributions of PHP), it seems that
it is not possible to use unix sockets --- at least
not without some serious hacking.
|