Portál AbcLinuxu, 14. května 2025 05:23
[root@localhost ~]# mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
tak sem na to šel jinak - mysqld_safe
[root@localhost ~]# mysqld_safe
chown: `mysql': neplatný uživatel
Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysqld/mysqld.pid
061217 12:24:04 mysqld ended
Preinstalovaval sem to snad 100x a už sem z toho blbej, :( kdo mi poradi?
service mysqld start
.
[root@localhost ~]# service mysqld start
chown: `mysql:mysql': neplatný uživatel
Inicializuji databázi MySQL: Installing all prepared tables
Fill help tables
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
[ OK ]
chown: `mysql:mysql': neplatný uživatel
chown: `mysql:mysql': neplatný uživatel
Timeout error occurred trying to start MySQL Daemon.
Spouštím MySQL: [SELHALO]
adduser mysql
. A znovu to zkus nastartovat tím příkazem service mysqld start
.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.