On 7/12/2011 10:51 PM, Papp Tamas wrote:
> hi!
> 
> Szepen telepitve, ahogy kell:
> 
> mysql-server-5.1.52-1.el6_0.1.i686
> 
> 
> Ha siman startolom, akkor nem indul el:
> 

Ez mit jelent?

> + TIMEOUT=120
> + '[' 120 -gt 0 ']'
> + /usr/bin/mysqld_safe --datadir=/var/lib/mysql 
> --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid 
> --basedir=/usr --user=mysql
> ++ /usr/bin/mysqladmin --socket=/var/lib/mysql/mysql.sock 
> --user=UNKNOWN_MYSQL_USER ping
> + RESPONSE='/usr/bin/mysqladmin: connect to server at '\''localhost'\'' 
> failed
> error: '\''Can'\''t connect to local MySQL server through socket 
> '\''/var/lib/mysql/mysql.sock'\'' (2)'\''
> Check that mysqld is running and that the socket: 
> '\''/var/lib/mysql/mysql.sock'\'' exists!'
> + echo '/usr/bin/mysqladmin: connect to server at '\''localhost'\'' failed
> error: '\''Can'\''t connect to local MySQL server through socket 
> '\''/var/lib/mysql/mysql.sock'\'' (2)'\''
> Check that mysqld is running and that the socket: 
> '\''/var/lib/mysql/mysql.sock'\'' exists!'
> + grep -q 'Access denied for user'
> + /bin/kill -0 21921
> + sleep 1
> + let TIMEOUT=120-1
> + '[' 119 -gt 0 ']'
> ++ /usr/bin/mysqladmin --socket=/var/lib/mysql/mysql.sock 
> --user=UNKNOWN_MYSQL_USER ping
> + RESPONSE='/usr/bin/mysqladmin: connect to server at '\''localhost'\'' 
> failed
> error: '\''Can'\''t connect to local MySQL server through socket 
> '\''/var/lib/mysql/mysql.sock'\'' (2)'\''
> Check that mysqld is running and that the socket: 
> '\''/var/lib/mysql/mysql.sock'\'' exists!'
> + grep -q 'Access denied for user'
> + echo '/usr/bin/mysqladmin: connect to server at '\''localhost'\'' failed
> error: '\''Can'\''t connect to local MySQL server through socket 
> '\''/var/lib/mysql/mysql.sock'\'' (2)'\''
> Check that mysqld is running and that the socket: 
> '\''/var/lib/mysql/mysql.sock'\'' exists!'
> + /bin/kill -0 21921
> + echo 'MySQL Daemon failed to start.'
> MySQL Daemon failed to start.
> 
> 
> Azaz ha jol ertelmezem, a process fut, de meg azelott elszall, hogy 
> lehetne a service-hez kapcsolodni.

Nem. A mysqladmin kimenetebol arra kovetkeztet, hogy nem fut a mysqld,
de ott van a sokcket, ezert csinalni valamit illetlen dolgot a 21921-es
processel, tudtommal ugyanis SIG0 nincs.
A mysqld low memory konfiggal nagyon lassan indul el, ezert probalna ket
percig kapcsolodni, de mar a masodik probalkozas utan abbahagyja.

Nem tul jo otlet a dbdirbe public socketet rakni, mert a dbirnek illene
mysql:mysql 700-nak lennie, akkor meg nem fersz hozza a sockethez.

> 
> Ellenben, ha a sh -x /etc/init.d/mysqld-vel startolom, akkor rendben 
> elindul. Vajon mi baja lehet?
> 

Nem sikerult korrekt initscriptet irni.

-- 
Gabor HALASZ <[email protected]>
_________________________________________________
linux lista      -      [email protected]
http://mlf2.linux.rulez.org/mailman/listinfo/linux

válasz