Debian Sarge a MySQL - nenastartuje po instalaci
Libor Chocholaty
libor_ml1 na mts.cz
Pondělí Červenec 31 17:32:02 CEST 2006
Slavek Banko wrote:
> Prosím, trochu upřesněte: "nejde to spustit, furt si to na neco stezuje."
>
Setting up libmysqlclient14-dev (4.1.11a-4sarge5) ...
Setting up mysql-client-4.1 (4.1.11a-4sarge5) ...
Setting up mysql-server-4.1 (4.1.11a-4sarge5) ...
Stopping MySQL database server: mysqld.
WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz
Starting MySQL database server: mysqld...failed.
Please take a look at the syslog.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket:
'/var/run/mysqld/mysqld.sock' exists!
V syslogu je:
Jul 31 17:20:58 heaven mysqld[4917]: 060731 17:20:58 InnoDB: Started;
log sequence number 0 0
Jul 31 17:20:58 heaven mysqld[4917]: 060731 17:20:58 [ERROR]
/usr/sbin/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
Jul 31 17:20:58 heaven mysqld[4917]: 060731 17:20:58 [ERROR] Fatal
error: Can't open privilege tables: Can't find file: './mysql/host.frm'
(errno: 13)
Jul 31 17:20:58 heaven mysqld_safe[4942]: ended
Jul 31 17:21:04 heaven /etc/init.d/mysql[5483]: 0 processes alive and
'/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Jul 31 17:21:04 heaven /etc/init.d/mysql[5483]: ^G/usr/bin/mysqladmin:
connect to server at 'localhost' failed
Jul 31 17:21:04 heaven /etc/init.d/mysql[5483]: error: 'Can't connect to
local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Jul 31 17:21:04 heaven /etc/init.d/mysql[5483]: Check that mysqld is
running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Jul 31 17:21:04 heaven /etc/init.d/mysql[5483]:
Kdyz se zaridim dle http://bugs.mysql.com/bug.php?id=1279 a spustim
mysql_install_db, tak se nic nezmeni, protoze pri pokusu o
/etc/init.d/mysql start to do syslogu vypise to same a ve /var/lib/mysql
zadny soubor host.frm neni.
Libor
Další informace o konferenci Linux