Hallo,
habe hier eine Synology DS214 stehen und habe über die Paketverwaltung phpMyAdmin installiert. Leider wird nur die Fehlermeldung
#2002 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
The server is not responding (or the local server's socket is not correctly configured).
angezeigt. Also per root-ssh auf die Box und ein /usr/syno/etc.default/rc.d/S21 start. Da passiert dann folgendes:
Initialize MySQL...
su: can't chdir to home directory '/var/services/homes/admin'
Installing MySQL system tables...
/usr/syno/mysql/bin/mysql_install_db: line 418: can't create /dev/null: Permission denied
Installation of system tables failed! Examine the logs in
/volume1/@database/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/syno/mysql/libexec/mysqld --skip-grant &
and use the command line tool /usr/syno/mysql/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/syno/mysql/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /volume1/@database/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/syno/mysql/bin/mysqlbug script!
Starting MySQL...
Starting MySQL.. ERROR! Manager of pid-file quit without updating file.
MYSQL data dir = /volume1/@database/mysql...
Das log-File sieht folgendermaßen aus:
131019 16:33:38 mysqld_safe Starting mysqld daemon with databases from /volume1/@database/mysql
131019 16:33:38 [Note] Plugin 'FEDERATED' is disabled.
/usr/syno/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist
131019 16:33:38 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
131019 16:33:38 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
131019 16:33:38 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
131019 16:33:38 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
131019 16:33:38 InnoDB: Started; log sequence number 0 0
131019 16:33:38 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
131019 16:33:39 mysqld_safe mysqld from pid file /tmp/mysqld.pid ended
Ein erneuter Versuch die atenbank zu starten führt zu:
131019 16:41:04 mysqld_safe Starting mysqld daemon with databases from /volume1/@database/mysql
131019 16:41:04 [Note] Plugin 'FEDERATED' is disabled.
/usr/syno/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist
131019 16:41:04 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: Log scan progressed past the checkpoint lsn 0 37356
131019 16:41:04 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 0 44233
131019 16:41:05 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
131019 16:41:05 InnoDB: Started; log sequence number 0 44233
131019 16:41:05 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
131019 16:41:05 mysqld_safe mysqld from pid file /tmp/mysqld.pid ended
Es scheint also so zu sein, dass die Scripts keine Datenbank anlegen können. Löschen des /volume1/@database-Ordners hat auch nichts gebracht.
Hat jemand eine Idee?
Cheers.
Felix
habe hier eine Synology DS214 stehen und habe über die Paketverwaltung phpMyAdmin installiert. Leider wird nur die Fehlermeldung
#2002 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
The server is not responding (or the local server's socket is not correctly configured).
angezeigt. Also per root-ssh auf die Box und ein /usr/syno/etc.default/rc.d/S21 start. Da passiert dann folgendes:
Initialize MySQL...
su: can't chdir to home directory '/var/services/homes/admin'
Installing MySQL system tables...
/usr/syno/mysql/bin/mysql_install_db: line 418: can't create /dev/null: Permission denied
Installation of system tables failed! Examine the logs in
/volume1/@database/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/syno/mysql/libexec/mysqld --skip-grant &
and use the command line tool /usr/syno/mysql/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/syno/mysql/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /volume1/@database/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/syno/mysql/bin/mysqlbug script!
Starting MySQL...
Starting MySQL.. ERROR! Manager of pid-file quit without updating file.
MYSQL data dir = /volume1/@database/mysql...
Das log-File sieht folgendermaßen aus:
131019 16:33:38 mysqld_safe Starting mysqld daemon with databases from /volume1/@database/mysql
131019 16:33:38 [Note] Plugin 'FEDERATED' is disabled.
/usr/syno/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist
131019 16:33:38 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
131019 16:33:38 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
131019 16:33:38 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
131019 16:33:38 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
131019 16:33:38 InnoDB: Started; log sequence number 0 0
131019 16:33:38 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
131019 16:33:39 mysqld_safe mysqld from pid file /tmp/mysqld.pid ended
Ein erneuter Versuch die atenbank zu starten führt zu:
131019 16:41:04 mysqld_safe Starting mysqld daemon with databases from /volume1/@database/mysql
131019 16:41:04 [Note] Plugin 'FEDERATED' is disabled.
/usr/syno/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist
131019 16:41:04 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: Log scan progressed past the checkpoint lsn 0 37356
131019 16:41:04 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 0 44233
131019 16:41:05 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
131019 16:41:05 InnoDB: Started; log sequence number 0 44233
131019 16:41:05 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
131019 16:41:05 mysqld_safe mysqld from pid file /tmp/mysqld.pid ended
Es scheint also so zu sein, dass die Scripts keine Datenbank anlegen können. Löschen des /volume1/@database-Ordners hat auch nichts gebracht.
Hat jemand eine Idee?
Cheers.
Felix