Re: RHEL6 + mysql-server
On 2011-07-12 23:29, Gabor HALASZ wrote: > Nem sikerult korrekt initscriptet irni. Selinux problema volt. t _ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux
Re: RHEL6 + mysql-server
On 7/12/2011 11:54 PM, BORBELY Zoltan wrote: > Sziasztok! > > On Tue, Jul 12, 2011 at 11:29:05PM +0200, Gabor HALASZ wrote: >> [...] ezert csinalni valamit illetlen dolgot a 21921-es >> processel, tudtommal ugyanis SIG0 nincs. > > Ez egy elég régi trükk, hogy az adott PID létezik-e még (kill(2)): > > "If sig is 0, then no signal is sent, but error checking is still per‐ > formed; this can be used to check for the existence of a process ID or > process group ID." Ah, ertem (bar az en man-ombol ez hianyzik, de a feature mukodik). -- Gabor HALASZ _ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux
Re: RHEL6 + mysql-server
Sziasztok! On Tue, Jul 12, 2011 at 11:29:05PM +0200, Gabor HALASZ wrote: > [...] ezert csinalni valamit illetlen dolgot a 21921-es > processel, tudtommal ugyanis SIG0 nincs. Ez egy elég régi trükk, hogy az adott PID létezik-e még (kill(2)): "If sig is 0, then no signal is sent, but error checking is still per‐ formed; this can be used to check for the existence of a process ID or process group ID." Üdv Bozo _ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux
Re: RHEL6 + mysql-server
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 _ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux
RHEL6 + mysql-server
hi! Szepen telepitve, ahogy kell: mysql-server-5.1.52-1.el6_0.1.i686 Ha siman startolom, akkor nem indul el: + 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. Ellenben, ha a sh -x /etc/init.d/mysqld-vel startolom, akkor rendben elindul. Vajon mi baja lehet? 10x tompos _ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux