+ Antworten
Ergebnis 1 bis 7 von 7

Thema: Probleme bei MySQL 5.1.30 installation auf CentOS 5.2

  1. #1
    TP-Veteran Flow09 ist auf einem guten Weg Avatar von Flow09
    Registriert seit
    Jun 2001
    Ort
    Wien
    Beiträge
    1.436

    Unhappy Probleme bei MySQL 5.1.30 installation auf CentOS 5.2

    Hey,

    ich bin gerade dabei auf meinem Linux Testrechner (CentOS 5.2) MySQL 5.1.30 zu installieren. das "besondere" daran ist ich zu Testzwecken zwei MySQL Versionen parallel betreiben möchte (5.0.32 & 5.1.30) . Ich hab mir die Sourcedatein von MySQL runtergeladen, entpackt und configure mit folgenden Parametern aufgerufen:
    Code:
    ./configure --prefix=/usr/local/mysql51 --with-unix-socket-path=/usr/local/mysql51/sock/mysqld.sock --with-mysqld-user=mysql51 --with-server-suffix=mysql51 --with-tcp-port=3308
    make & make install haben wunderbar funktioniert.
    Ich habe dann noch einen neuen Systemuser 'mysql51' erstellt und unter /etc/init.d/mysql51 das Startscript erstellt sowie die my.cnf unter /usr/local/mysql51.

    Der gesamte Ordner /usr/local/mysql51 gehört dem User mysql51.

    Wenn ich nun /etc/init.d/mysql51 start ausführe erhalte ich die Fehlermeldung
    "Starting MySQL.Manager of pid-file quit without updating file"

    im mysqld.log finde ich folgendes:


    090114 15:22:44 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql51/var
    090114 15:22:44 [Warning] Ignoring user change to 'mysql51' because the user was set to 'mysql' earlier on the command line

    090114 15:22:44 [Warning] Ignoring user change to 'mysql51' because the user was set to 'mysql' earlier on the command line

    /usr/local/mysql51/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
    090114 15:22:44 [ERROR] Aborting

    090114 15:22:44 [Note] /usr/local/mysql51/libexec/mysqld: Shutdown complete

    090114 15:22:44 mysqld_safe mysqld from pid file /usr/local/mysql51/var/flow.testserver.pid ended
    090114 15:32:39 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql51/var
    090114 15:32:39 [Warning] Ignoring user change to 'mysql51' because the user was set to 'mysql' earlier on the command line

    090114 15:32:39 [Warning] Ignoring user change to 'mysql51' because the user was set to 'mysql' earlier on the command line

    /usr/local/mysql51/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
    090114 15:32:39 [ERROR] Aborting

    090114 15:32:39 [Note] /usr/local/mysql51/libexec/mysqld: Shutdown complete

    090114 15:32:39 mysqld_safe mysqld from pid file /usr/local/mysql51/var/flow.testserver.pid ended


    Ich habe natürlich auch schon Google mit der Fehlermeldung " './mysql-bin.index' not found (Errcode: 13)" befragt allerdings habe ich nicht wirklich brauchbare Antworten gefunden.

    Kennt einer von euch dieses Problem??

    lg
    Flow
    Geändert von Flow09 (15.01.2009 um 10:54 Uhr)
    Lesser known Programming Languages #13: SLOBOL
    ... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.

  2. #2
    TP-Supporter tom81 ist auf einem guten Weg Avatar von tom81
    Registriert seit
    Mar 2006
    Ort
    Erftstadt
    Beiträge
    301
    Hi,

    ich werde mal versuchen Dir zu helfen

    1.
    /usr/local/mysql51/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
    Du kannst das Binär-Logging von Mysql deaktivieren, dann dürfte der Server danach nicht mehr verlangen. Oder Überprüfe Deine Pfade, sowie Deine Konfiguration in my.cnf.

    2. Hast Du eine Datenbankstruktur angelegt mit mysql_install_db?

    3. Versuch den Server mit /path/to/bin/mysqld_safe –user=mysql51 &
    zu starten.

    viele Grüße
    Tom
    "Ich darf das!"
    Der Mensch hat drei Wege, klug zu handeln. Erstens durch Nachdenken: Das ist der edelste. Zweitens durch Nachahmen: Das ist der leichteste. Drittens durch Erfahrung: Das ist der bitterste. (Konfuzius)

  3. #3
    TP-Veteran Flow09 ist auf einem guten Weg Avatar von Flow09
    Registriert seit
    Jun 2001
    Ort
    Wien
    Beiträge
    1.436
    zu 1.) Danke für den Tipp, ich habs jetzt mal in der my.cf auskommentiert.
    zu 2.) Ja hab ich vorher schon gemacht
    zu 3.) hab ich auch schon probiert, gleicher Fehler wie beim Startscript

    So, nachdem ich das mysql-bin auskommentiert habe tritt jetzt ein neuer Fehler auf (Auszug aus der mysqld.log):

    090115 10:39:36 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql51/var
    090115 10:39:37 [Warning] Ignoring user change to 'mysql51' because the user was set to 'mysql' earlier on the command line

    090115 10:39:37 [Warning] Ignoring user change to 'mysql51' because the user was set to 'mysql' earlier on the command line

    /usr/local/mysql51/libexec/mysqld: Table 'mysql.plugin' doesn't exist
    090115 10:39:37 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
    090115 10:39:37 [ERROR] /usr/local/mysql51/libexec/mysqld: unknown option '--skip-federated'
    090115 10:39:37 [ERROR] Aborting

    090115 10:39:37 [Note] /usr/local/mysql51/libexec/mysqld: Shutdown complete

    090115 10:39:37 mysqld_safe mysqld from pid file /usr/local/mysql51/var/flow.testserver.pid ended


    Wenn ich mysql_upgrade laufen lassen möchte bekomm ich den Fehler das die Datenbank nicht erreichbar ist (klar, der Server ist ja nicht gestartet). So, das ist nun die berühmte Katze die sich in den Schwanz beißt, ohne mysql_upgrade bekomm ich den Serve rnicht zum laufen, ohne laufenden Server kann ich mysql_upgrade nicht ausführen
    Lesser known Programming Languages #13: SLOBOL
    ... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.

  4. #4
    TP-Supporter tom81 ist auf einem guten Weg Avatar von tom81
    Registriert seit
    Mar 2006
    Ort
    Erftstadt
    Beiträge
    301
    Dann fällt mir noch eines ein, überprüfe mal die Dateirechte für:

    /usr/local/mysql51/var/

    Dieses Verzeichnis sollte dem User mysql51:mysql51 gehören.

    Prüfe mal diese angaben in der my.cnf (könnte zumindest sein )

    Code:
    [mysqld_safe]
    socket          = /path/to/sock/mysqld.sock
    nice            = 0
    
    [mysqld]
    #
    # * Basic Settings
    #
    user            = mysql  # Hier sollte bei dir mysql51 stehen!
    pid-file        = /path/to/pid/mysqld.pid
    socket          = /path/to/sock/mysqld.sock
    port            = 3306
    basedir         = /usr
    datadir         = /path/to/db/mysql
    tmpdir          = /tmp
    language        = /path/to/lang/mysql/english
    viele Grüße
    Tom
    "Ich darf das!"
    Der Mensch hat drei Wege, klug zu handeln. Erstens durch Nachdenken: Das ist der edelste. Zweitens durch Nachahmen: Das ist der leichteste. Drittens durch Erfahrung: Das ist der bitterste. (Konfuzius)

  5. #5
    TP-Veteran Flow09 ist auf einem guten Weg Avatar von Flow09
    Registriert seit
    Jun 2001
    Ort
    Wien
    Beiträge
    1.436
    die Rechte sind:
    drwxr-xr-x 2 mysql51 mysql 4096 15. Jan 10:39 var

    Der user mysql51 hat keine eigene Gruppe, er gehört der Gruppe mysql an.

    ich hab die Fehlenden Parameter in meine my.cnf eingetragen ==> Resultat:: Fast geschafft , es bleibt derzeit nur noch ein Fehler übrig:


    090115 11:46:36 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql51
    090115 11:46:36 [ERROR] /usr/local/mysql51/libexec/mysqld: unknown option '--skip-federated'
    090115 11:46:36 [ERROR] Aborting

    090115 11:46:36 [Note] /usr/local/mysql51/libexec/mysqld: Shutdown complete

    090115 11:46:36 mysqld_safe mysqld from pid file /usr/local/mysql51/mysqld.pid ended


    lg
    Flow
    Lesser known Programming Languages #13: SLOBOL
    ... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.

  6. #6
    TP-Moderator fuchzga lebt für das TP und seine User fuchzga lebt für das TP und seine User fuchzga lebt für das TP und seine User fuchzga lebt für das TP und seine User fuchzga lebt für das TP und seine User fuchzga lebt für das TP und seine User fuchzga lebt für das TP und seine User Avatar von fuchzga
    Registriert seit
    Nov 2007
    Ort
    München
    Beiträge
    1.818
    Schaut MySQL nicht immer erst auch in die /etc/my.cnf bzw /etc/mysql/my.cnf?
    (... keine Ahnung wie das unter CentOS aussieht.)

  7. #7
    TP-Veteran Flow09 ist auf einem guten Weg Avatar von Flow09
    Registriert seit
    Jun 2001
    Ort
    Wien
    Beiträge
    1.436
    Juhu geschafft!!! Ich hab noch skip-federated aus der my.cnf auskommentiert und nun rennt das Zeug endlich!!!

    Danke für die Hilfe!!

    Edit: Ja, ich geb beim aufruf von /usr/local/mysql51/bin/mysqld_safe noch --defaults-file = /usr/local/mysql51/my.cnf mit, und damit schaut er dan nin die richtige my.cnf
    Lesser known Programming Languages #13: SLOBOL
    ... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.

+ Antworten

Ähnliche Themen

  1. Installation von MySQL 5.0
    Von heikomi im Forum Traum-Dynamik
    Antworten: 2
    Letzter Beitrag: 07.11.2005, 14:34
  2. PHP und MySQL installation
    Von BRIX im Forum Traum-Dynamik
    Antworten: 1
    Letzter Beitrag: 20.05.2005, 14:22
  3. [mysql] Installation
    Von Hydrax im Forum Traum-Dynamik
    Antworten: 4
    Letzter Beitrag: 21.09.2004, 12:17
  4. MySQL & PHP-Installation
    Von Dreamflower im Forum Server & Provider
    Antworten: 0
    Letzter Beitrag: 27.07.2002, 02:20
  5. Installation von MySQL
    Von Nothhelfer im Forum Traum-Dynamik
    Antworten: 5
    Letzter Beitrag: 19.06.2002, 14:42

Stichworte

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

     

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51