mysql + apache
Carsten Umland
carsten.umland at gmx.de
Thu Dec 21 19:46:35 CET 2000
> Warning: MySQL Connection Failed: Can't connect to local MySQL server
> through socket '/var/run/mysqld/mysqld.sock' (111) in
> /usr/local/apache/htdocs/phpMyAdmin/lib.inc.php3 on line 255
>
> Ist also ein Socke-Problem. Ich kann doch aber in der my.cnf angeben, wo
> die
> mysql.sock liegen soll, oder?
> Hier ein Auszug aus meiner cnf:
> ...
># The following options will be passed to all MySQL c
> [client]
>#password = your_password
> port = 3306
> socket = /var/run/mysqld/mysqld.sock
>
># Here follows entries for some specific programs
>
># The MySQL server
> [mysqld]
> port = 3306
> socket = /var/run/mysqld/mysqld.sock
> ...
sag mal hast du überhaupt die config.inc.php3 bearbeitet ? in
/us/local/httpd/htdocs/phpmyadmin/
könnte so aussehen:
snip---
$cfgServers[1]['host'] = 'localhost'; // MySQL hostname
$cfgServers[1]['port'] = ''; // MySQL port - leave
blank for default port
$cfgServers[1]['adv_auth'] = false; // Use advanced
authentication?
$cfgServers[1]['stduser'] = ''; // MySQL standard user (only
needed with advanced auth)
$cfgServers[1]['stdpass'] = ''; // MySQL standard password
(only needed with advanced auth)
$cfgServers[1]['user'] = 'root'; // MySQL user (only needed
with basic auth)
$cfgServers[1]['password'] = ''; // MySQL password (only
needed with basic auth)
$cfgServers[1]['only_db'] = ''; // If set to a db-name,
only this db is accessible
$cfgServers[1]['verbose'] = ''; // Verbose name for this
snap---
und bekommst du überhaupt einen connect mit mysqld --user=root
? über die konsole ?
---------------------------------
with best regards
carsten umland
mailto:carsten.umland at gmx.de
GPG Key fingerprint = 9C50 575A F4CE 7632 D601 EF61 74DB 1139 68AE 928D
KeyServer http://germany.keyserver.net/en/
---------------------------------
More information about the Linux
mailing list