Mysql ohne Funktion

Mardor

Well-Known Member
Hallo,

ich habe heute mysql57-server, mysql57-client installiert.

Einmal über portmaster, danach zum Gegentest über pkg install. Nach der Installation existiert das Problem das ich mysql nicht starten kann. Ich erhalte nicht einmal eine Meldung in /var/log/messages.

Auch "onestart" zeigt mir nur "Starting mysql" an.

Unter /var/db/mysql/<client>/err erhalte ich folgende Meldung:

Code:
160303 23:01:03 mysqld_safe mysqld from pid file /var/db/mysql/xxx.yyy.zzz.pid ended
160303 23:01:47 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
2016-03-03T22:01:47.678756Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-03-03T22:01:47.679518Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2016-03-03T22:01:47.679825Z 0 [Note] /usr/local/libexec/mysqld (mysqld 5.7.10) starting as process 6870 ...
2016-03-03T22:01:47.697869Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-03-03T22:01:47.697996Z 0 [Note] InnoDB: Uses event mutexes
2016-03-03T22:01:47.698021Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-03-03T22:01:47.698052Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-03-03T22:01:47.698987Z 0 [Note] InnoDB: Number of pools: 1
2016-03-03T22:01:47.699592Z 0 [Note] InnoDB: Using CPU crc32 instructions
2016-03-03T22:01:47.726855Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2016-03-03T22:01:47.760360Z 0 [Note] InnoDB: Completed initialization of buffer pool
2016-03-03T22:01:47.777709Z 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
2016-03-03T22:01:47.777767Z 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
2016-03-03T22:01:47.777797Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2016-03-03T22:01:47.883335Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2016-03-03T22:01:47.883396Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-03-03T22:01:47.883425Z 0 [ERROR] Failed to initialize plugins.
2016-03-03T22:01:47.883443Z 0 [ERROR] Aborting

2016-03-03T22:01:47.883483Z 0 [Note] Binlog end
2016-03-03T22:01:47.883647Z 0 [Note] Shutting down plugin 'CSV'
2016-03-03T22:01:47.883680Z 0 [Note] Shutting down plugin 'MyISAM'
2016-03-03T22:01:47.883985Z 0 [Note] /usr/local/libexec/mysqld: Shutdown complete

Hätte von euch jemand eine Idee für den Grund ?

Gruß Mardor
 
Du hast da fehlermeldungen gekennzeichnet mit dem Word ERROR, verfolge doch einfach diese und schau was passiert wenn du das behoben hast ;)
 
Du hast da fehlermeldungen gekennzeichnet mit dem Word ERROR, verfolge doch einfach diese und schau was passiert wenn du das behoben hast
Das habe ich bereits, ich habe vieles ausgetestet aber nichts dieser Aktionen hat geholfen. Ich gehe davon aus, dass der Grund davon war das die Anleitungen von FreeBSD in Beziehung mit InnoDB schon ziemlich alt waren.

Nicht genügend Schreibrechte?
Ja, kann sein, aber sollte eine Standardinstallation über pkg oder ein Kompilen nicht schon die korrekten Rechte setzen ?

hast du mysql_secure_installation ausgeführt?
Ja, gleich zu beginn, da aber MySQL nicht aktiv ist erhalte ich folgende Meldung.
Code:
Securing the MySQL server deployment.

Connecting to MySQL server using password in '/root/.mysql_secret'
Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)


Lösche einfach /var/db/mysql und starte nochmal. Hast du eine my.cnf angelegt und Pfade verbogen?
Ich kenne es von älteren Versionen, da gibt es eine mysql_small die ich dann in my.cnf umbenennen kann. Dieses File gibt es nicht (nicht mehr). Es gibt nur eine my-default, aber da sind überhaupt keine Parameter eingetragen. Ausserdem steht folgendes im File:
Code:
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.

Gruß Mardor
 
Zurück
Oben