wie ich ja bereits http://forum.rootforum.de/viewtopic.php?f=104&t=50667 beschrieben habe, hab ich Probleme mit meinem MySQL Server. Da ich mir nicht weiter zu helfen wusste, habe ich versucht den MySQL Server einfach mal neu zu installieren - leider funktioniert auch das nicht, aber der Reihe nach:
Im /var/log/daemon.log ist einem Bekannten, den ich um Rat gefragt habe, folgendes aufgefallen.
Code: Select all
usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/vt-server.pid --skip-external-locking --open-files-limit=8240 --port=3306 --socket=/var/run/mysqld/mysqld.sock
Code: Select all
/var/lib/mysql/vt-server.pid
Code: Select all
/var/run/mysqld/mysqld.pid
Ich habe dann alles von mysql mittel
Code: Select all
apt-get -u remove --purge mysql-server-5.0 mysql-client-5.0
Code: Select all
dpkg --purge --ignore-depends=mysql-common mysql-common
Danach habe ich mysql-common wieder installiert.
Code: Select all
dpkg -l "mysql*"
pn mysql-client <keine> (keine Beschreibung vorhanden)
un mysql-client-4.1 <keine> (keine Beschreibung vorhanden)
ii mysql-client-5.0 5.0.32-7etch10 mysql database client binaries
ii mysql-common 5.0.32-7etch10 mysql database common files (e.g. /etc/mysql/my.cnf)
un mysql-common-4.1 <keine> (keine Beschreibung vorhanden)
pn mysql-server <keine> (keine Beschreibung vorhanden)
un mysql-server-4.1 <keine> (keine Beschreibung vorhanden)
in mysql-server-5.0 <keine> (keine Beschreibung vorhanden)
Da die Installation vom mysql Server anschließen mich nach einem Passwort gefragt hat, bin ich nach der Anleitunghttp://serversupportforum.de/forum/183023-post2.html vorgangen, und habe die old_password.cnf angelegt,danach kam keine Passwort abfrage, die Installation vom mysql-Server bleibt aber beim prescript von Mysql hängen.
Hier das Log:
Code: Select all
vt-server:~# apt-get -u install mysql-server-5.0
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
Vorgeschlagene Pakete:
tinyca
Die folgenden NEUEN Pakete werden installiert:
mysql-server-5.0
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 0B von 25,4MB Archiven geholt werden.
Nach dem Auspacken werden 68,3MB Plattenplatz zusätzlich benutzt.
Vorkonfiguration der Pvt-server:~# ps -ef|grep mysql
root 10619 3996 2 18:40 pts/0 00:00:00 dpkg --force-all -i /var/cache/apt/archives/mysql-server-5.0_5.0.32-7etch10_i386.deb
root 10767 10619 0 18:40 pts/0 00:00:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/mysql-server-5.0.postinst configure
root 10778 10767 0 18:40 pts/0 00:00:00 /bin/bash -e /var/lib/dpkg/info/mysql-server-5.0.postinst configure
root 10904 10778 0 18:40 pts/0 00:00:00 /bin/sh /usr/sbin/invoke-rc.d mysql start
root 10920 10904 0 18:40 pts/0 00:00:00 /bin/bash /etc/init.d/mysql start
root 10944 10920 0 18:40 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe
mysql 10981 10944 0 18:40 pts/0 00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
root 10982 10944 0 18:40 pts/0 00:00:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
root 10992 10920 0 18:40 pts/0 00:00:00 /bin/bash /etc/init.d/mysql start
root 10993 10992 0 18:40 pts/0 00:00:00 /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping
root 11000 4115 0 18:41 pts/1 00:00:00 grep mysqlakete ...
(Lese Datenbank ... 34399 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke mysql-server-5.0 (aus .../mysql-server-5.0_5.0.32-7etch10_i386.deb) ...
Richte mysql-server-5.0 ein (5.0.32-7etch10) ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld
Code: Select all
vt-server:~# ps -ef|grep mysql
root 10619 3996 2 18:40 pts/0 00:00:00 dpkg --force-all -i /var/cache/apt/archives/mysql-server-5.0_5.0.32-7etch10_i386.deb
root 10767 10619 0 18:40 pts/0 00:00:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/mysql-server-5.0.postinst configure
root 10778 10767 0 18:40 pts/0 00:00:00 /bin/bash -e /var/lib/dpkg/info/mysql-server-5.0.postinst configure
root 10904 10778 0 18:40 pts/0 00:00:00 /bin/sh /usr/sbin/invoke-rc.d mysql start
root 10920 10904 0 18:40 pts/0 00:00:00 /bin/bash /etc/init.d/mysql start
root 10944 10920 0 18:40 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe
mysql 10981 10944 0 18:40 pts/0 00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
root 10982 10944 0 18:40 pts/0 00:00:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
root 10992 10920 0 18:40 pts/0 00:00:00 /bin/bash /etc/init.d/mysql start
root 10993 10992 0 18:40 pts/0 00:00:00 /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping
root 11000 4115 0 18:41 pts/1 00:00:00 grep mysql
Code: Select all
Aug 19 19:11:42 localhost mysqld_safe[14891]: PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
Aug 19 19:11:42 localhost mysqld_safe[14891]: To do so, start the server, then issue the following commands:
Aug 19 19:11:42 localhost mysqld_safe[14891]: /usr/bin/mysqladmin -u root password 'new-password'
Aug 19 19:11:42 localhost mysqld_safe[14891]: /usr/bin/mysqladmin -u root -h vt-server password 'new-password'
Aug 19 19:11:42 localhost mysqld_safe[14891]: See the manual for more instructions.
Aug 19 19:11:42 localhost mysqld_safe[14891]:
Aug 19 19:11:42 localhost mysqld_safe[14891]: Please report any problems with the /usr/bin/mysqlbug script!
Aug 19 19:11:42 localhost mysqld_safe[14891]:
Aug 19 19:11:42 localhost mysqld_safe[14891]: The latest information about MySQL is available on the web at
Aug 19 19:11:42 localhost mysqld_safe[14891]: http://www.mysql.com
Aug 19 19:11:42 localhost mysqld_safe[14891]: Support MySQL by buying support/licenses at http://shop.mysql.com
Aug 19 19:11:43 localhost mysqld_safe[15030]: started
Aug 19 19:11:43 localhost mysqld[15033]: InnoDB: The first specified data file ./ibdata1 did not exist:
Aug 19 19:11:43 localhost mysqld[15033]: InnoDB: a new database to be created!
Aug 19 19:11:43 localhost mysqld[15033]: 090819 19:11:43 InnoDB: Setting file ./ibdata1 size to 10 MB
Aug 19 19:11:43 localhost mysqld[15033]: InnoDB: Database physically writes the file full: wait...
Aug 19 19:11:43 localhost mysqld[15033]: 090819 19:11:43 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
Aug 19 19:11:43 localhost mysqld[15033]: InnoDB: Setting log file ./ib_logfile0 size to 5 MB
Aug 19 19:11:43 localhost mysqld[15033]: InnoDB: Database physically writes the file full: wait...
Aug 19 19:11:44 localhost mysqld[15033]: 090819 19:11:44 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
Aug 19 19:11:44 localhost mysqld[15033]: InnoDB: Setting log file ./ib_logfile1 size to 5 MB
Aug 19 19:11:44 localhost mysqld[15033]: InnoDB: Database physically writes the file full: wait...
Aug 19 19:11:44 localhost mysqld[15033]: InnoDB: Doublewrite buffer not found: creating new
Aug 19 19:11:44 localhost mysqld[15033]: InnoDB: Doublewrite buffer created
Aug 19 19:11:44 localhost mysqld[15033]: InnoDB: Creating foreign key constraint system tables
Aug 19 19:11:44 localhost mysqld[15033]: InnoDB: Foreign key constraint system tables created
Aug 19 19:11:44 localhost mysqld[15033]: 090819 19:11:44 InnoDB: Started; log sequence number 0 0
Aug 19 19:11:44 localhost mysqld[15033]: 090819 19:11:44 [Note] /usr/sbin/mysqld: ready for connections.
Aug 19 19:11:44 localhost mysqld[15033]: Version: '5.0.32-Debian_7etch10-log' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Debian etch distribution
Code: Select all
vt-server:~# netstat |grep mysql
unix 4 [ ] STREAM VERBINDUNGSAUFBAU 0 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM VERBINDUNGSAUFBAU 0 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM VERBINDUNGSAUFBAU 0 /var/run/mysqld/mysqld.sock
unix 4 [ ] STREAM VERBINDUNGSAUFBAU 0 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM VERBINDUNGSAUFBAU 0 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM VERBINDUNGSAUFBAU 0 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM VERBINDUNGSAUFBAU 0 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM VERBINDUNGSAUFBAU 0 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM VERBINDUNGSAUFBAU 0 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM VERBINDUNGSAUFBAU 0 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM VERBUNDEN 36914 /var/run/mysqld/mysqld.sock
Code: Select all
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld
.
Checking for corrupt, not cleanly closed and upgrade needing tables..
Danke im Voraus.!
UPDATE:
Ich habe den mysql Installprozess um 19:21Uhr gestartet - und die letzte Aktivität war um 20:02Uhr, lt. ps -ef|grep mysql
Code: Select all
vt-server:~# ps -ef|grep mysql
root 14760 3996 0 19:11 pts/0 00:00:00 apt-get -u install mysql-server-5.0
root 14817 14760 0 19:11 pts/0 00:00:00 /usr/bin/dpkg --status-fd 20 --configure mysql-server-5.0
root 14818 14817 0 19:11 pts/0 00:00:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/mysql-server-5.0.postinst configure
root 14828 14818 0 19:11 pts/0 00:00:00 /bin/bash -e /var/lib/dpkg/info/mysql-server-5.0.postinst configure
root 14995 1 0 19:11 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe
mysql 15032 14995 0 19:11 pts/0 00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
root 15033 14995 0 19:11 pts/0 00:00:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
root 15715 1 0 19:21 pts/0 00:00:00 /bin/bash /etc/mysql/debian-start
root 15719 15715 0 19:21 pts/0 00:00:00 /usr/bin/mysql_upgrade --defaults-extra-file=/etc/mysql/debian.cnf
root 15722 15715 0 19:21 pts/0 00:00:00 logger -p daemon.warn -i -t/etc/mysql/debian-start
root 17853 15719 0 19:58 pts/0 00:00:00 sh -c /usr/bin/mysql --defaults-extra-file=/var/lib/mysql/mysql_upgrade_defaults --force --no-auto-rehash --batch --user=debian-sys-maint mysql < /usr/share/mysql/mysql_fix_privilege_tables.sql
root 17854 17853 0 19:58 pts/0 00:00:00 /usr/bin/mysql --defaults-extra-file=/var/lib/mysql/mysql_upgrade_defaults --force --no-auto-rehash --batch --user=debian-sys-maint mysql
root 19238 14828 0 20:02 pts/0 00:00:00 mysql --no-defaults -u root -h localhost
root 22559 4115 0 20:59 pts/1 00:00:00 grep mysql
Code: Select all
dpkg: Fehler beim Bearbeiten von mysql-server-5.0 (--configure):
-su: syntax error near unexpected token `('
vt-server:~# Unterprozess post-installation script mit Signal (Unterbrechung) get#et
-su: syntax error near unexpected token `('
vt-server:~# Fehler traten auf beim Bearbeiten von:
-su: Fehler: command not found
vt-server:~# mysql-server-5.0
-su: mysql-server-5.0: command not found
vt-server:~# E: Sub-process /usr/bin/dpkg returned an error code (1)
Code: Select all
vt-server:/var/log/mysql# ps -ef|grep mysql
root 14995 1 0 19:11 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe
mysql 15032 14995 0 19:11 pts/0 00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
root 15033 14995 0 19:11 pts/0 00:00:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
root 23800 4115 0 21:04 pts/1 00:00:00 grep mysql
Code: Select all
vt-server:~# /etc/init.d/mysql status
MySQL is stopped..
Hoffentlich hat wer einen Hinweis für mich....