Proviamo a fare le cose con calma. Prima elimina il log da /var/lib/mysqld e poi prova a far partire il server con 'rc.mysqld start'. Quindi posta l'intero log e non solo il grep.
Emanuele
Moderatore: Staff


root@:mysql$ cat /var/lib/mysql/darkstar.err | grep ERROR
120705 14:35:22 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
120705 14:35:23 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
120705 14:35:23 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)



root@:run$ rm /var/lib/mysql/darkstar.err
root@:run$ sh /etc/rc.d/rc.mysqld restart
120705 22:42:20 mysqld_safe mysqld from pid file /var/run/mysql/mysql.pid ended
root@:run$ 120705 22:42:20 mysqld_safe Logging to '/var/lib/mysql/darkstar.err'.
120705 22:42:21 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
120705 22:42:22 mysqld_safe mysqld from pid file /var/run/mysql/mysql.pid ended
root@:run$ cat /var/lib/mysql/darkstar.err
120705 22:42:20 mysqld_safe mysqld from pid file /var/run/mysql/mysql.pid ended
120705 22:42:21 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
120705 22:42:21 [Note] Plugin 'FEDERATED' is disabled.
/usr/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
120705 22:42:21 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
120705 22:42:21 InnoDB: The InnoDB memory heap is disabled
120705 22:42:21 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120705 22:42:21 InnoDB: Compressed tables use zlib 1.2.6
120705 22:42:21 InnoDB: Using Linux native AIO
120705 22:42:21 InnoDB: Initializing buffer pool, size = 128.0M
120705 22:42:21 InnoDB: Completed initialization of buffer pool
120705 22:42:21 InnoDB: highest supported file format is Barracuda.
120705 22:42:21 InnoDB: Waiting for the background threads to start
120705 22:42:22 InnoDB: 1.1.8 started; log sequence number 1595675
120705 22:42:22 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
120705 22:42:22 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
120705 22:42:22 mysqld_safe mysqld from pid file /var/run/mysql/mysql.pid ended
root@:run$ mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
root@:run$ mysql_install_db --user=mysql
Installing MySQL system tables...
ERROR: 1007 Can't create database 'performance_schema'; database exists
120705 22:49:54 [ERROR] Aborting
120705 22:49:54 [Note] /usr/libexec/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/libexec/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/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/bin/mysqlbug script!


/etc/rc.d/rc.mysqld stop
rm /var/run/mysql/*
chown mysql.mysql /var/run/mysql
/etc/rc.d/rc.mysqld start
. Magari prima rimuovi il log così poi hai il log pulito quando esegui lo "start".
darkstaring ha scritto:ma non saprei come fare il cambio dell' owner e group alla directory /var/run/mysql.. aiuti???

Ma questo non è esattamente quanto gli ho detto io con:ermes ha scritto:darkstaring ha scritto:ma non saprei come fare il cambio dell' owner e group alla directory /var/run/mysql.. aiuti???
#chown -R mysql /var/run/mysql mysql
#chgrp -R mysql /var/run/mysql mysql
chown mysql.mysql /var/run/mysql

1011010 1100101 1110010 1101111 - 0100000 - 1010101 1101110 1101111


.
(ritocca il titolo del primo post),
Visitano il forum: Nessuno e 1 ospite