Can't connect to local MySQL server through socket

Post Reply
Message
Author
typhon
Posts: 1
Joined: 07. Aug 2002 2:34
Location: bodensee

Can't connect to local MySQL server through socket

#1 Post by typhon »

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...

Matze

Re: Can't connect to local MySQL server through socket

#2 Post by Matze »

hi,

was sagen deine logs ? (z.b. apache, mysql)

matze

typhon

Re: Can't connect to local MySQL server through socket

#3 Post by typhon »

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'

Matze

Re: Can't connect to local MySQL server through socket

#4 Post by Matze »

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

typhon

Re: Can't connect to local MySQL server through socket

#5 Post by typhon »

ich glaub ich werd verrückt es lag an der zeile ich hab da immer localhost eingetragen :)
$cfg['Servers'][$i]['host'] = 'linux'; // MySQL hostname

Post Reply