Portál AbcLinuxu, 9. srpna 2025 15:30
robin@ubuntu:/etc$ mysqld mysqld: File '/var/log/mysql/mysql-bin.index' not found (Errcode: 13) 060905 23:24:40 [ERROR] Aborting 060905 23:24:40 [Note] mysqld: Shutdown completeAdresar /var/log/mysql/ je prazdny!
root@ubuntu:/etc/init.d# mysql start ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)Nevim si s tim vubec rady.
server:/home/dalibor# dpkg -l | grep mysql ii libdbd-mysql-perl 3.0006-1 A Perl5 database interface to the MySQL data ii libmysqlclient14 4.1.15-3 mysql database client library rc libmysqlclient15 5.0.18-9 mysql database client library ii libmysqlclient15off 5.0.24a-1 mysql database client library ii mysql-client-5.0 5.0.24a-1 mysql database client binaries ii mysql-common 5.0.24a-3 mysql database common files (e.g. /etc/mysql ii mysql-server-5.0 5.0.24a-1 mysql database server binaries ii php4-mysql 4.4.4-1 MySQL module for php4
robin@ubuntu:~$ dpkg -l |grep mysql ii kmysqladmin 0.7.2-1 Kde graphical frontend for mysql servers ii libapache2-mod-auth-mysql 4.3.9-2ubuntu3 Apache 2 module for MySQL authentication ii libdbd-mysql 0.7.1-3ubuntu1 MySQL database server driver for libdbi ii libdbd-mysql-perl 3.0002-2build1 A Perl5 database interface to the MySQL data rc libmysqlclient12 4.0.24-10ubuntu2 mysql database client library ii libmysqlclient14 4.1.15-1ubuntu5 mysql database client library rc libmysqlclient15 5.0.18-8.1 mysql database client library ii libmysqlclient15off 5.0.22-0ubuntu6.06.2 mysql database client library ii mysql-client 5.0.22-0ubuntu6.06.2 mysql database client (current version) ii mysql-client-5.0 5.0.22-0ubuntu6.06.2 mysql database client binaries ii mysql-common 5.0.22-0ubuntu6.06.2 mysql database common files (e.g. /etc/mysql ii mysql-navigator 1.4.2-7 GUI client program for MySQL database server ii mysql-query-browser 1.1.17-5ubuntu3 Official GUI tool to query MySQL database ii mysql-query-browser-common 1.1.17-5ubuntu3 Architecture independent files for MySQL Que ii mysql-server 5.0.22-0ubuntu6.06.2 mysql database server (current version) ii mysql-server-5.0 5.0.22-0ubuntu6.06.2 mysql database server binaries ii php5-mysql 5.1.2-1ubuntu3.1 MySQL module for php5 ii php5-mysqli 5.1.2-1ubuntu3.1 MySQL Improved module for php5
--log-bin-index[=file_name]
The index file for binary log filenames. See Section 10.3, "The Binary Log". If you omit the filename, and if you didn't specify one with --log-bin, MySQL uses host_name-bin.index as the filename.
Neviem ako na Ubuntu, ale skus pozriet do /usr/bin/ ci tam nie je subor "mysqld_safe" a spustit ho.
(Mam Slack, a /etc/rc.d/rc.mysql odkazuje prave tam)
root@ubuntu:/etc# mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql mysqld_safe[21983]: started STOPPING server from pid file /var/run/mysqld/mysqld.pid mysqld_safe[21989]: ended
find / -user mysql -print
zobrazi:
/var/lib/mysql/
/var/run/mysql/
+ vsetky podadresare.
root@ubuntu:/var/log/mysql# /etc/init.d/mysql restart Stopping MySQL database server: mysqld. Starting MySQL database server: mysqld. . ...failed or took more than 6s. 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!
/var/log/mysql/mysql-bin.index
by se měl totiž právě týkat binárních logů.
root
pust si mc
cd /var/log
mysql
Soubor
> zmena vlastnika
mysql
nastav
cd /etc/init.d
./myslq start
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.