Forum: PC Hard- und Software MySql4 auf Synology -> Error


von Rudlbier (Gast)


Angehängte Dateien:

Lesenswert?

Hallo Leute,

Habe auf meinen Synology NAS eine Mysql4 Datenbank für meine Buchhaltung 
aufgesetzt.
Anleitung:
http://www.synology-forum.de/showthread.html?4948-MYSQL4-Installation

Das hat jetzt lange (1/2 Jahr) funktioniert.
Leider hat ein Stromausfall meinen NAS hart vom Netz genommen.

Nun habe ich das Fehlerbild im Anhang.
Die Datenbank will nicht mehr starten.

Leider bin ich auf Linux eine Voll 0.

Gibt es irgendein Logfile, welches ich einsehen kann?
Wenn ja. Wo ist das und wie kann ich es einsehen.

Gibt es eine Generallösung für dieses Problem?

Dankeschön für eure Antworten.

mfG
Rudlbier

von Rudlbier (Gast)


Lesenswert?

Noch die my.cnf zur Mysql4:

# Unslung MySQL config file.
# Based on my-small.cnf
#
# This is for a system with little memory (<= 64M) where MySQL is only 
used
# from time to time and it's important that the mysqld daemon
# doesn't use much resources.
#
# You can copy this file to
# /opt/etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /opt/var) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.

# The following options will be passed to all MySQL clients
[client]
#password  = your_password
#port    = 3306
#socket    = /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
user    = root
datadir    = /opt/var/lib/mysql
port    = 3307
socket    = /tmp/mysql4.sock
skip-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K

# Don't listen on a TCP/IP port at all. This can be a security 
enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named 
pipes.
# Note that using this option without enabling named pipes on Windows
# (using the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
server-id  = 1

# Uncomment the following if you want to log updates
#log-bin

# Uncomment the following if you are NOT using BDB tables
skip-bdb

# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /opt/var/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /opt/var/
#innodb_log_arch_dir = /opt/var/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 8M
sort_buffer_size = 8M

[myisamchk]
key_buffer = 8M
sort_buffer_size = 8M

[mysqlhotcopy]
interactive-timeout

[mysql.server]
user=root

[safe_mysqld]

von abc (Gast)


Lesenswert?

wirf' mal einen blick ins syslog

von Toni Tester (Gast)


Lesenswert?

Habe schon lange keine Synology mehr, aber typischerweise liegen die 
Logfiles bei Desktop-Linuxen unter /var/log - hier habe ich 
/var/log/mysql/.

Schau da mal nach.

Nebenbei würde ich das Socket nicht in /tmp erstellen, sondern da, wo er 
hin gehört, z. B. /var/run.

von Rudlbier (Gast)


Lesenswert?

Hmmmm. Finde da irgendwie nix.
Folgende Dateien wurden installiert:






/opt/bin/comp_err
/opt/bin/isamchk
/opt/bin/isamlog
/opt/bin/msql2mysql
/opt/bin/my_print_defaults
/opt/bin/myisam_ftdump
/opt/bin/myisamchk
/opt/bin/myisamlog
/opt/bin/myisampack
/opt/bin/mysql
/opt/bin/mysql_client_test
/opt/bin/mysql_config
/opt/bin/mysql_convert_table_format
/opt/bin/mysql_create_system_tables
/opt/bin/mysql_explain_log
/opt/bin/mysql_find_rows
/opt/bin/mysql_fix_extensions
/opt/bin/mysql_fix_privilege_tables
/opt/bin/mysql_install_db
/opt/bin/mysql_secure_installation
/opt/bin/mysql_setpermission
/opt/bin/mysql_tableinfo
/opt/bin/mysql_tzinfo_to_sql
/opt/bin/mysql_waitpid
/opt/bin/mysql_zap
/opt/bin/mysqlaccess
/opt/bin/mysqladmin
/opt/bin/mysqlbinlog
/opt/bin/mysqlbug
/opt/bin/mysqlcheck
/opt/bin/mysqld_multi
/opt/bin/mysqld_safe
/opt/bin/mysqldump
/opt/bin/mysqldumpslow
/opt/bin/mysqlhotcopy
/opt/bin/mysqlimport
/opt/bin/mysqlmanager-pwgen
/opt/bin/mysqlmanagerc
/opt/bin/mysqlshow
/opt/bin/mysqltest
/opt/bin/pack_isam
/opt/bin/perror
/opt/bin/replace
/opt/bin/resolve_stack_dump
/opt/bin/resolveip
/opt/etc/init.d/K70mysqld
/opt/etc/init.d/S70mysqld
/opt/etc/my.cnf
/opt/include/mysql/errmsg.h
/opt/include/mysql/keycache.h
/opt/include/mysql/m_ctype.h
/opt/include/mysql/m_string.h
/opt/include/mysql/my_alloc.h
/opt/include/mysql/my_config.h
/opt/include/mysql/my_dbug.h
/opt/include/mysql/my_dir.h
/opt/include/mysql/my_getopt.h
/opt/include/mysql/my_global.h
/opt/include/mysql/my_list.h
/opt/include/mysql/my_net.h
/opt/include/mysql/my_no_pthread.h
/opt/include/mysql/my_pthread.h
/opt/include/mysql/my_semaphore.h
/opt/include/mysql/my_sys.h
/opt/include/mysql/my_xml.h
/opt/include/mysql/mysql.h
/opt/include/mysql/mysql_com.h
/opt/include/mysql/mysql_embed.h
/opt/include/mysql/mysql_time.h
/opt/include/mysql/mysql_version.h
/opt/include/mysql/mysqld_error.h
/opt/include/mysql/raid.h
/opt/include/mysql/sql_common.h
/opt/include/mysql/sql_state.h
/opt/include/mysql/sslopt-case.h
/opt/include/mysql/sslopt-longopts.h
/opt/include/mysql/sslopt-vars.h
/opt/include/mysql/typelib.h
/opt/lib/mysql/libdbug.a
/opt/lib/mysql/libheap.a
/opt/lib/mysql/libmerge.a
/opt/lib/mysql/libmyisam.a
/opt/lib/mysql/libmyisammrg.a
/opt/lib/mysql/libmysqlclient.la
/opt/lib/mysql/libmysqlclient.so
/opt/lib/mysql/libmysqlclient.so.14
/opt/lib/mysql/libmysqlclient.so.14.0.0
/opt/lib/mysql/libmysqlclient_r.la
/opt/lib/mysql/libmysqlclient_r.so
/opt/lib/mysql/libmysqlclient_r.so.14
/opt/lib/mysql/libmysqlclient_r.so.14.0.0
/opt/lib/mysql/libmystrings.a
/opt/lib/mysql/libmysys.a
/opt/lib/mysql/libnisam.a
/opt/lib/mysql/libvio.a
/opt/libexec/mysqld
/opt/share/man/man1/isamchk.1
/opt/share/man/man1/isamlog.1
/opt/share/man/man1/msql2mysql.1
/opt/share/man/man1/myisam_ftdump.1
/opt/share/man/man1/myisamchk.1
/opt/share/man/man1/myisamlog.1
/opt/share/man/man1/myisampack.1
/opt/share/man/man1/mysql.1
/opt/share/man/man1/mysql.server.1
/opt/share/man/man1/mysql_config.1
/opt/share/man/man1/mysql_explain_log.1
/opt/share/man/man1/mysql_fix_privilege_tables.1
/opt/share/man/man1/mysql_zap.1
/opt/share/man/man1/mysqlaccess.1
/opt/share/man/man1/mysqladmin.1
/opt/share/man/man1/mysqlbinlog.1
/opt/share/man/man1/mysqlcheck.1
/opt/share/man/man1/mysqld.1
/opt/share/man/man1/mysqld_multi.1
/opt/share/man/man1/mysqld_safe.1
/opt/share/man/man1/mysqldump.1
/opt/share/man/man1/mysqlhotcopy.1
/opt/share/man/man1/mysqlimport.1
/opt/share/man/man1/mysqlman.1
/opt/share/man/man1/mysqlshow.1
/opt/share/man/man1/pack_isam.1
/opt/share/man/man1/perror.1
/opt/share/man/man1/replace.1
/opt/share/man/man1/safe_mysqld.1
/opt/share/man/man8/mysqld.8
/opt/share/mysql/binary-configure
/opt/share/mysql/charsets/Index.xml
/opt/share/mysql/charsets/README
/opt/share/mysql/charsets/armscii8.xml
/opt/share/mysql/charsets/ascii.xml
/opt/share/mysql/charsets/cp1250.xml
/opt/share/mysql/charsets/cp1251.xml
/opt/share/mysql/charsets/cp1256.xml
/opt/share/mysql/charsets/cp1257.xml
/opt/share/mysql/charsets/cp850.xml
/opt/share/mysql/charsets/cp852.xml
/opt/share/mysql/charsets/cp866.xml
/opt/share/mysql/charsets/dec8.xml
/opt/share/mysql/charsets/geostd8.xml
/opt/share/mysql/charsets/greek.xml
/opt/share/mysql/charsets/hebrew.xml
/opt/share/mysql/charsets/hp8.xml
/opt/share/mysql/charsets/keybcs2.xml
/opt/share/mysql/charsets/koi8r.xml
/opt/share/mysql/charsets/koi8u.xml
/opt/share/mysql/charsets/latin1.xml
/opt/share/mysql/charsets/latin2.xml
/opt/share/mysql/charsets/latin5.xml
/opt/share/mysql/charsets/latin7.xml
/opt/share/mysql/charsets/macce.xml
/opt/share/mysql/charsets/macroman.xml
/opt/share/mysql/charsets/swe7.xml
/opt/share/mysql/czech/errmsg.sys
/opt/share/mysql/czech/errmsg.txt
/opt/share/mysql/danish/errmsg.sys
/opt/share/mysql/danish/errmsg.txt
/opt/share/mysql/dutch/errmsg.sys
/opt/share/mysql/dutch/errmsg.txt
/opt/share/mysql/english/errmsg.sys
/opt/share/mysql/english/errmsg.txt
/opt/share/mysql/estonian/errmsg.sys
/opt/share/mysql/estonian/errmsg.txt
/opt/share/mysql/fill_help_tables.sql
/opt/share/mysql/french/errmsg.sys
/opt/share/mysql/french/errmsg.txt
/opt/share/mysql/german/errmsg.sys
/opt/share/mysql/german/errmsg.txt
/opt/share/mysql/greek/errmsg.sys
/opt/share/mysql/greek/errmsg.txt
/opt/share/mysql/hungarian/errmsg.sys
/opt/share/mysql/hungarian/errmsg.txt
/opt/share/mysql/italian/errmsg.sys
/opt/share/mysql/italian/errmsg.txt
/opt/share/mysql/japanese-sjis/errmsg.sys
/opt/share/mysql/japanese-sjis/errmsg.txt
/opt/share/mysql/japanese/errmsg.sys
/opt/share/mysql/japanese/errmsg.txt
/opt/share/mysql/korean/errmsg.sys
/opt/share/mysql/korean/errmsg.txt
/opt/share/mysql/mi_test_all
/opt/share/mysql/mi_test_all.res
/opt/share/mysql/my-huge.cnf
/opt/share/mysql/my-innodb-heavy-4G.cnf
/opt/share/mysql/my-large.cnf
/opt/share/mysql/my-medium.cnf
/opt/share/mysql/my-small.cnf
/opt/share/mysql/mysql-log-rotate
/opt/share/mysql/mysql.server
/opt/share/mysql/mysql_fix_privilege_tables.sql
/opt/share/mysql/ndb-config-2-node.ini
/opt/share/mysql/norwegian-ny/errmsg.sys
/opt/share/mysql/norwegian-ny/errmsg.txt
/opt/share/mysql/norwegian/errmsg.sys
/opt/share/mysql/norwegian/errmsg.txt
/opt/share/mysql/polish/errmsg.sys
/opt/share/mysql/polish/errmsg.txt
/opt/share/mysql/portuguese/errmsg.sys
/opt/share/mysql/portuguese/errmsg.txt
/opt/share/mysql/romanian/errmsg.sys
/opt/share/mysql/romanian/errmsg.txt
/opt/share/mysql/russian/errmsg.sys
/opt/share/mysql/russian/errmsg.txt
/opt/share/mysql/serbian/errmsg.sys
/opt/share/mysql/serbian/errmsg.txt
/opt/share/mysql/slovak/errmsg.sys
/opt/share/mysql/slovak/errmsg.txt
/opt/share/mysql/spanish/errmsg.sys
/opt/share/mysql/spanish/errmsg.txt
/opt/share/mysql/swedish/errmsg.sys
/opt/share/mysql/swedish/errmsg.txt
/opt/share/mysql/ukrainian/errmsg.sys
/opt/share/mysql/ukrainian/errmsg.txt

von Rudlbier (Gast)


Lesenswert?

Falls es wichtig ist: Es ist ein DS214play NAS von Synology

von Pandur S. (jetztnicht)


Lesenswert?

Mein Tip. Disk ausbauen. Eine neue blanke Disk rein und dann probieren 
dieselbe(!!) Version des DSM einzuspielen. Auf keinen Fall eine Neuere.
Falls das klappt, ist etwas auf der Disk nicht gut. Sonst muss es etwas 
anderes sein.

von Frank E. (Firma: Q3) (qualidat)


Lesenswert?

Außerdem ist MySQL 4 inzwischen älter als die Braunkohle.

Installier' nach einer geglückten Reparatur eine MariaDB (vom gleichen 
Entwickler und abwärtskompatibel) und wahlweise sogar mit einer 
crashfesten Storage-Engine ("Aria") ... die Daten kannst du z.B. mit 
PHPMyAdmin (aus dem Synology Paket-Center) ex- und importieren.

: Bearbeitet durch User
von Rudlbier (Gast)


Lesenswert?

Frank E. schrieb:
> Außerdem ist MySQL 4 inzwischen älter als die Braunkohle.

Es handelt sich um das Progamm CAO Faktura.
Der Entwickler will aber nicht auf Mysql 5 umsatteln :-(
Daher die Steinzeitversion.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.