MySql startet nicht, 2003 Error

Alles, was MariaDB und MySQL betrifft, kann hier besprochen werden.

MySql startet nicht, 2003 Error

Postby mollo » 23. October 2006 16:12

Um ein wenig CMS zu testen habe ich XAMPP installiert.
Ich nutzte ohne große Probleme Apache, PHP und MySql.

Seit einigen Tagen bekomme ich aber keine Verbindung zu MySQL.

Nach einigen Versuchen habe ich XAMPP Windows 1.5.4a neu installiert.
Setup_xampp.bat ausgeführt
Mit xampp-control.exe kann ich Apache starten und über localhost die Apache Startseite aufrufen. Reine PHP Anwendungen wie z.B. CMSimple laufen.

Nach dem Start von MySql müßte ich über PHPMyAdmin die Datenbank sehen können. Aber hier kommt schon die Meldung:
#2003 - Der Server antwortet nicht.

Xampp-portcheck zeigt:
Service Port Status
=================================================================
Apache (HTTP) 80 G:\xampp\apache\bin\apache.exe
Apache (WebDAV) 81 free
Apache (HTTPS) 443 G:\xampp\apache\bin\apache.exe

MySQL 3306 G:\xampp\mysql\bin\mysqld.exe

FileZilla (FTP) 21 free
FileZilla (Admin) 14147 free

Mercury (SMTP) 25 free
Mercury (POP3) 110 free
Mercury (IMAP) 143 free
--------------------------------------------------------------

Mysql.exe zeigt:
G:\xampp\mysql\bin>mysql
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
--------------------------------------------------------------

G:\xampp\mysql\bin>mysqladmin ping
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to MySQL server on 'localhost' (10061)'
Check that mysqld is running on localhost and that the port is 3306.
You can check this by doing 'telnet localhost 3306'

G:\xampp\mysql\bin>telnet localhost 3306
Verbindungsaufbau zu localhost...Es konnte keine Verbindung mit dem Host hergestellt werden, auf Port 3306: Verbinden fehlgeschlagen

Wie muß ich vorgehen um den Fehler zu finden um MySql wieder zu nutzen.

Danke,
Thomas
mollo
 
Posts: 4
Joined: 23. October 2006 15:31

Postby sari42 » 29. October 2006 10:01

mysql_start.bat aufrufen und fehlermeldung auswerten
(evtl. @echo off entfernen)
sari42
 
Posts: 800
Joined: 27. November 2005 18:28

Postby mollo » 04. November 2006 09:13

mysql_start.bat zeigt:

G:\xampp>echo Diese Eingabeforderung nicht waehrend des Running beenden
Diese Eingabeforderung nicht waehrend des Running beenden

G:\xampp>echo Please dont close Window while MySQL is running
Please dont close Window while MySQL is running

G:\xampp>echo MySQL is trying to start
MySQL is trying to start

G:\xampp>echo Please wait ...
Please wait ...

G:\xampp>echo MySQL is starting with mysql\bin\my.cnf (console)
MySQL is starting with mysql\bin\my.cnf (console)

G:\xampp>mysql\bin\mysqld --defaults-file=mysql\bin\my.cnf --standalone --console
061104 8:54:04 [Note] mysql\bin\mysqld: ready for connections.
Version: '5.0.24a-community' socket: '' port: 3306 MySQL Community Edition (GPL)

Aber das xampp-status pannel zeigt:
MySQL-Datenbank DEAKTIVIERT
PHP DEAKTIVIERT
HTTPS (SSL) DEAKTIVIERT
Common Gateway Interface (CGI) DEAKTIVIERT
Server Side Includes (SSI) DEAKTIVIERT
SMTP Server DEAKTIVIERT
FTP Server DEAKTIVIERT

und phpMyAdmin meldet beim Aufruf:
#2003 - Der Server antwortet nicht.

Aber eine PHP-Anwendung cmssiple kann ausgeführt werden.

Danke und Grüße,
Thomas
mollo
 
Posts: 4
Joined: 23. October 2006 15:31

Postby sari42 » 05. November 2006 01:35

>061104 8:54:04 [Note] mysql\bin\mysqld: ready for connections.
>Version: '5.0.24a-community' socket: '' port: 3306 MySQL Community Edition (GPL)

das ist doch erfreulich :)

>und phpMyAdmin meldet beim Aufruf: #2003 - Der Server antwortet nicht.

dann steht wohl etwas anderes als
----
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
----

in der config.inc.php

====
>Seit einigen Tagen bekomme ich aber keine Verbindung zu MySQL.
irgendwas *muß* geändert worden sein!
evtl. liegts am "G:"


btw
>Please dont close Window while MySQL is running
das ist quatsch
sari42
 
Posts: 800
Joined: 27. November 2005 18:28

Postby mollo » 05. November 2006 13:23

Meine config.inc.php
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
Nach dem Datum der Datei wurde diese auch bei der Installation nicht verändert.

Die Anpassung an die G: Platte wurde bei der Installation durch G:\xampp\setup_xampp.bat erledigt. Auch bei der Erstinstallation habe ich keine weiteren Veränderungen vorgenommen.

Danke und Grüße,
Thomas
mollo
 
Posts: 4
Joined: 23. October 2006 15:31

Postby sari42 » 05. November 2006 20:38

3 möglichkeiten fallen mir noch ein:

"$cfg['Servers'][$i]['extension'] = 'mysqli'; " mal testen.

evtl. ist in my.cnf/ini "skip networking" drin, dann lauscht mysql nur auf sockets.

firewall blockt port 3306
sari42
 
Posts: 800
Joined: 27. November 2005 18:28

Postby mollo » 07. November 2006 09:16

:cry:
Ich dachte ZoneAlarm währe nicht aktive, da nicht gestartet.
Auch ein Ping auf die eigene Netz-Adresse funktionierte nicht.
Nach der Deinstallation von ZoneAlarm kann ich wieder auf
mySQL zugreifen.
Noch mals vielen Dank,
Thomas
mollo
 
Posts: 4
Joined: 23. October 2006 15:31


Return to MariaDB - MySQL

Who is online

Users browsing this forum: No registered users and 13 guests