also bin hier schier am verzweifeln vielleicht erst mal mein rechner:
redhat 7.2, apache php 4 und mysql sind installiert aber ich kann kein zugriff über phpmyadmin erhalten und auch nicht über ein selbst gebasteltes php-script.
tabellen erstellen usw funktioniert nur über konsole
hab schon alles mögliche versucht: hab den socket geändert (bei redhat ist der in var/lib/mysql), hab ihn auch in phpmyadmin geändert , auch in der php.ini hab ich den pfad angeben weil er ja vom standart abweicht auch nichts
hatte vielleicht jemand mal das gleiche problem???? wenn ja wäre für jede hilfe dankbar
die berechtigungen für die verzeichnisse sind auch richtig...
Can't connect to local MySQL server through socket
Re: Can't connect to local MySQL server through socket
hi,
was sagen deine logs ? (z.b. apache, mysql)
matze
was sagen deine logs ? (z.b. apache, mysql)
matze
Re: Can't connect to local MySQL server through socket
apache logs:
127.0.0.1 - - [07/Aug/2002:03:08:34 +0200] "GET /phpMyAdmin/index.php HTTP/1.0" 200 5509 "http://localhost/phpMyAdmin/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)"
127.0.0.1 - - [07/Aug/2002:03:08:34 +0200] "GET /phpMyAdmin/images/vertical_line.gif HTTP/1.0" 304 - "http://localhost/phpMyAdmin/index.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)"
127.0.0.1 - - [07/Aug/2002:03:08:42 +0200] "GET /phpMyAdmin/index.php HTTP/1.0" 200 852 "http://localhost/phpMyAdmin/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)"
mysql:
/usr/sbin/mysqld, Version: 3.23.51-log, started with:
Tcp port: 3306 Unix socket: /var/lib/mysql/mysql.sock
Time Id Command Argument
020807 3:21:37 1 Connect root@localhost on
1 Query SHOW VARIABLES LIKE 'pid_file'
127.0.0.1 - - [07/Aug/2002:03:08:34 +0200] "GET /phpMyAdmin/index.php HTTP/1.0" 200 5509 "http://localhost/phpMyAdmin/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)"
127.0.0.1 - - [07/Aug/2002:03:08:34 +0200] "GET /phpMyAdmin/images/vertical_line.gif HTTP/1.0" 304 - "http://localhost/phpMyAdmin/index.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)"
127.0.0.1 - - [07/Aug/2002:03:08:42 +0200] "GET /phpMyAdmin/index.php HTTP/1.0" 200 852 "http://localhost/phpMyAdmin/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)"
mysql:
/usr/sbin/mysqld, Version: 3.23.51-log, started with:
Tcp port: 3306 Unix socket: /var/lib/mysql/mysql.sock
Time Id Command Argument
020807 3:21:37 1 Connect root@localhost on
1 Query SHOW VARIABLES LIKE 'pid_file'
Re: Can't connect to local MySQL server through socket
war das nur die access_log vom apache ? poste mal noch den output der error_log....
ansonsten - funzt php sonst ? version 3 oder 4 ?
wie hast du deine config.inc bzw. mysql.conf configuriert ? hast du den letzten "/" vergessen ? fragenüberfragen...
matze
ansonsten - funzt php sonst ? version 3 oder 4 ?
wie hast du deine config.inc bzw. mysql.conf configuriert ? hast du den letzten "/" vergessen ? fragenüberfragen...
matze
Re: Can't connect to local MySQL server through socket
ich glaub ich werd verrückt es lag an der zeile ich hab da immer localhost eingetragen
$cfg['Servers'][$i]['host'] = 'linux'; // MySQL hostname
$cfg['Servers'][$i]['host'] = 'linux'; // MySQL hostname