Probleme mit MySQL

  • Ich habe folgende Konstellation: Windows XP prof., Apache läuft, PHP läuft, MySQL nacheinander in unterschiedlichen Versionen installiert und bei allen Versionen das selbe Problem: Der Dienst MySQL läuft, in WinMySQLadmin habe ich permanent eine grüne Ampel, aber sobald ich versuche einen Befehl über die DOS-Box abzusetzen, erhalte ich die Meldung "Error 2013: Lost connection to MySQL Server during query". Was noch auffällt ist, daß in WinMySQLadmin zwar die Ampel grün ist, aber keinerlei Infos zum Server angezeigt werden. Solangsam gehen mir die Ideen aus. Bin für jede Unterstützung dankbar.

  • Hi Andre,
    die DBs, die standardmäßig installiert werden, sind natürlich vorhanden (c:mysqldatamysql, 18 Stück, 6 x *.MYD, 6 x *.MYI und 6 x *.FRM). Beim Versuch in WinMySQLadmin neue DBs anzulegen, scheitert es aber daran, daß es keinen Connect zum Server gibt. Im Fenster databases versucht, über "Ceate Database" eine neue Datenbank anzulegen. Ergebnis: Fehlermeldung "The Server must be connected!" Was ich nicht verstehe ist, warum habe ich permanenet eine grüne Ampel? Ich kann den Service im Taskmanager sehen, ich kann ihn entladen und wieder laden, alles kein Problem, aber wie kriege ich den Connect hin?!? Es ist wirklich zum Mäusemelken!!!

  • Hallo Bernd,
    ich würde einfach mal behaupten, dass die grüne Ampel "lügt".
    Der MySQL Server läuft nicht.
    Hast Du ein anderes Programm (z.B. Access) um auf die MySQL zugreifen zu können?
    Oder besser, hast Du z.B. PHP auf Deinem Rechner laufen, dann könnte man mit PHP mal einen Connect bauen.
    Bye André

  • Hallo Andre,
    ich gehe auch davon aus, daß die Ampel "lügt". Wenn ich z.B. phpMyAdmin aufrufe, bekomme ich die Meldung "Lost connection to MySQL server during query". Scheint ja wohl ein Hinweis in die Richtung zu sein, daß der Server nicht gefunden wird.
    Gruß Bernd

  • Hallo Bernd,
    ja, dann läuft der Server nicht.
    Mach mal einen einfachen Connect per PHP.
    Wenn Du nicht weißt wie, fertige Scripte (Kleinteile) findest Du im PHP-Teil der Page...
    Viele Grüße
    André
    --
    André - PC-Special Team, Webmaster und Entwicklung
    kostenlose Computer-Hilfe in 24h - Webmastertools, Scripts und mehr
    url: http://www.pc-special.net/ - email:
    kostenloses Newslettersystem - 3. größter kostenloser Anbieter

  • Hallo Andre,
    versucht, einen Connect über PHP herzustellen. Erfolg:
    "Lost connection to MySQL server during query at c:mysqlhomepagesconnect.html at line 5"
    Inhalt von Zeile 5:
    $db = mysql_connect("127.0.0.1","root");
    Grüße Bernd

  • hi,
    > "Lost connection to MySQL server during query at
    > c:mysqlhomepagesconnect.html at line 5"
    vielleicht unterstützt der server das ausführen von php-code nur in
    .php-dateien, nicht in .html...
    bye
    --
    Johannes Clemens - PC-Special Team, Redaktion & Helpline-Admin
    kostenlose Computer-Hilfe in 24h - Webmastertools - Scripte - und mehr
    url: http://www.pc-special.net - email: johannes@pc-special.net
    => http://www.pc-special.net/?idcat0 - die Url für Deine Probleme
    => coverrock @ its best: http://www.double-dee.de

  • Hallo Johannes,
    leider macht das auch keinen Unterschied:
    "Lost connection to MySQL server during query
    at c:MySQLhomepagesconnect.php at line 3"
    Grüße Bernd

  • hallo,
    > "Lost connection to MySQL server during query
    > at c:MySQLhomepagesconnect.php at line 3"
    jetzt zeigt er aber zeile 3, was steht da?
    schick mir doch mal die php-dateien
    --
    Johannes Clemens - PC-Special Team, Redaktion & Helpline-Admin
    kostenlose Computer-Hilfe in 24h - Webmastertools - Scripte - und mehr
    url: http://www.pc-special.net - email: johannes@pc-special.net
    => http://www.pc-special.net/?idcat0 - die Url für Deine Probleme
    => coverrock @ its best: http://www.double-dee.de

  • Hallo Johannes,
    anbei die connect.php Datei und die my.ini (steht im Verzeichnis c:windows)
    Grüße Bernd
    -----Ursprüngliche Nachricht-----
    Von: Johannes Clemens (johannes@pc-special.net)
    [mailto:helpline@pc-special.net]
    Gesendet: Sonntag, 9. November 2003 15:21
    An: helparchiv@pc-special.net
    Cc: bthorborg
    Betreff: [28962] 39: Probleme mit MySQL
    hallo,
    > "Lost connection to MySQL server during query
    > at c:MySQLhomepagesconnect.php at line 3"
    jetzt zeigt er aber zeile 3, was steht da?
    schick mir doch mal die php-dateien
    --
    Johannes Clemens - PC-Special Team, Redaktion & Helpline-Admin
    kostenlose Computer-Hilfe in 24h - Webmastertools - Scripte - und mehr
    url: http://www.pc-special.net - email: johannes@pc-special.net
    => http://www.pc-special.net/?idcat0 - die Url für Deine Probleme
    => coverrock @ its best: http://www.double-dee.de
    --
    Link zum PC-Special.net Forum:
    http://www.pc-special.net/?idart6&fnav7.39.29163.1

  • Hallo Bernd,
    Attachments sind leider im Moment noch nicht möglich. Schicke uns bitte den Source in der Mail. Danke.
    Viele Grüße
    André
    --
    André - PC-Special Team, Webmaster und Entwicklung
    kostenlose Computer-Hilfe in 24h - Webmastertools, Scripts und mehr
    url: http://www.pc-special.net/ - email:
    kostenloses Newslettersystem - 3. größter kostenloser Anbieter

  • -----Ursprüngliche Nachricht-----
    Von: B. Thorborg [mailto:bthorborg@yahoo.de]
    Gesendet: Sonntag, 9. November 2003 15:39
    An: Johannes Clemens (johannes@pc-special.net)
    Betreff: AW: [28962] 39: Probleme mit MySQL
    Hallo Johannes,
    anbei die connect.php Datei und die my.ini (steht im Verzeichnis c:windows)
    Grüße Bernd
    --------------------------------------------
    CONNECT.PHP
    <?php
    $db = mysql_connect("127.0.0.1","root");
    mysql_select_db("mysql",$db);
    $result = mysql_query("SELECT Host, User, Password FROM mysql",$db);
    while ($myrow = mysql_fetch_row($result)) {
    printf("Host: %s <br>User: %s<br>Password %s<br>", $myrow[0], $myrow[1],
    $myrow[2]);
    }
    ?>
    -------------------------
    MY.INI
    # Example mysql config file.
    # Copy this file to c:my.cnf to set global options
    #
    # One can use all long options that the program supports.
    # Run the program with --help to get a list of available options
    # This will be passed to all mysql clients
    [client]
    #password=my_password
    port306
    #socket=MySQL
    # Here is entries for some specific programs
    # The following values assume you have at least 32M ram
    # The MySQL server
    [mysqld]
    port306
    #socket=MySQL
    skip-locking
    set-variable = key_bufferM
    set-variable = max_allowed_packet=1M
    set-variable = table_cached
    set-variable = sort_bufferQ2K
    set-variable = net_buffer_length=8K
    set-variable = myisam_sort_buffer_size=8M
    server-id = 1
    #set-variable = thread_stack%6k
    # Uncomment the following if you want to log updates
    #log-bin
    # Uncomment the following rows if you move the MySQL distribution to another
    # location
    #basedir = c:/mysql/
    #datadir = c:/mysql/data/
    # Uncomment the following if you are NOT using BDB tables
    #skip-bdb
    # Uncomment the following if you are using BDB tables
    #set-variable = bdb_cache_size=4M
    #set-variable = bdb_max_lock000
    # Uncomment the following if you are using Innobase tables
    #innodb_data_file_path = ibdata1:400M
    #innodb_data_home_dir = c:ibdata
    #innodb_log_group_home_dir = c:iblogs
    #innodb_log_arch_dir = c:iblogs
    #set-variable = innodb_mirrored_log_groups=1
    #set-variable = innodb_log_files_in_group=3
    #set-variable = innodb_log_file_size=5M
    #set-variable = innodb_log_buffer_size=8M
    #innodb_flush_log_at_trx_commit=1
    #innodb_log_archive=0
    #set-variable = innodb_buffer_pool_sizeM
    #set-variable = innodb_additional_mem_pool_size=2M
    #set-variable = innodb_file_io_threads=4
    #set-variable = innodb_lock_wait_timeoutP
    [mysqldump]
    quick
    set-variable = max_allowed_packetM
    [mysql]
    no-auto-rehash
    # Remove the next comment character if you are not familiar with SQL
    #safe-updates
    [isamchk]
    set-variable = key_buffer M
    set-variable = sort_buffer M
    set-variable = read_buffer=2M
    set-variable = write_buffer=2M
    [myisamchk]
    set-variable = key_buffer M
    set-variable = sort_buffer M
    set-variable = read_buffer=2M
    set-variable = write_buffer=2M
    [mysqlhotcopy]
    interactive-timeout
    [WinMySQLAdmin]
    Server=C:/mysql/bin/mysqld-nt.exe
    -----Ursprüngliche Nachricht-----
    Von: Johannes Clemens (johannes@pc-special.net)
    [mailto:helpline@pc-special.net]
    Gesendet: Sonntag, 9. November 2003 15:21
    An: helparchiv@pc-special.net
    Cc: bthorborg
    Betreff: [28962] 39: Probleme mit MySQL
    hallo,
    > "Lost connection to MySQL server during query
    > at c:MySQLhomepagesconnect.php at line 3"
    jetzt zeigt er aber zeile 3, was steht da?
    schick mir doch mal die php-dateien
    --
    Johannes Clemens - PC-Special Team, Redaktion & Helpline-Admin
    kostenlose Computer-Hilfe in 24h - Webmastertools - Scripte - und mehr
    url: http://www.pc-special.net - email: johannes@pc-special.net
    => http://www.pc-special.net/?idcat0 - die Url für Deine Probleme
    => coverrock @ its best: http://www.double-dee.de
    --
    Link zum PC-Special.net Forum:
    http://www.pc-special.net/?idart6&fnav7.39.29163.1

  • Hallo,
    deine Syntax kommt mir komisch vor, woher hast du die denn??
    Ich lese mit $result = mysql_query($sql, $db); den SQL-Befehl aus der DB und kann dann mittels einer while-schleife (while (($row = mysql_fetch_array ($result, MYSQL_NUM))) {) das ergebnis in arrays auslesen...
    bye
    --
    Johannes Clemens - PC-Special Team, Redaktion & Helpline-Admin
    kostenlose Computer-Hilfe in 24h - Webmastertools - Scripte - und mehr
    url: http://www.pc-special.net - email: johannes@pc-special.net
    => http://www.pc-special.net/?idcat0 - die Url für Deine Probleme
    => coverrock @ its best: http://www.double-dee.de

  • Hallo Johannes,
    zunächst mal sorry für den delay. Meine Probleme haben sich endlich geklärt. Ich habe (aus anderen Gründen) meine Firewall deinstalliert und wieder neu installiert. Seitdem läuft alles so wie gewünscht. Vielen Dank für Eure Hilfe! Ich finde es super, wie Ihr Euch bemüht habt. Nochmals DANKE!!
    Tja und Script? Abgekupfert und (ohne Hintergrundwissen) an meine Bedürfnisse adaptiert.
    Liebe Grüße
    Bernd