vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi I am not able to restart MySQL Database Server (mysql-5.0.54) on Gentoo, I see the below information in the mysqld.err file ################################################## ################################################## ################################################## 06 6:30:13 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem. 080506 6:30:13 - mysqld got signal 4; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. key_buffer_size=0 read_buffer_size=262144 max_used_connections=0 max_connections=100 threads_connected=0 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 76800 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd=(nil) Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... frame pointer is NULL, did you compile with -fomit-frame-pointer? Aborting backtrace! The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains information that should help you find out what is causing the crash. ################################################## ################################################## ################################################## Any ideas Thanks and Regards Kaushal |
| |||
| Hi, Please, you must set up the log-bin for enable replication : Example ( in your my.cnf ) --log-bin=mysqld-bin The mysql signal 4 error appear when you install erroneus your environment. I recommed reinstall your MySQL in your OS. Regards, Juan On 5/6/08, Kaushal Shriyan <kaushalshriyan@gmail.com> wrote: > > Hi > > I am not able to restart MySQL Database Server (mysql-5.0.54) on Gentoo, I > see the below information in the mysqld.err file > > > ################################################## ################################################## ################################################## > > 06 6:30:13 [Warning] No argument was provided to --log-bin, and > --log-bin-index was not used; so replication may break when this MySQL > server acts as a master and has his hostname changed!! Please use > '--log-bin=mysqld-bin' to avoid this problem. > 080506 6:30:13 - mysqld got signal 4; > This could be because you hit a bug. It is also possible that this binary > or one of the libraries it was linked against is corrupt, improperly > built, > or misconfigured. This error can also be caused by malfunctioning > hardware. > We will try our best to scrape up some info that will hopefully help > diagnose > the problem, but since we have already crashed, something is definitely > wrong > and this may fail. > > key_buffer_size=0 > read_buffer_size=262144 > max_used_connections=0 > max_connections=100 > threads_connected=0 > It is possible that mysqld could use up to > key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = > 76800 K > bytes of memory > Hope that's ok; if not, decrease some variables in the equation. > > thd=(nil) > Attempting backtrace. You can use the following information to find out > where mysqld died. If you see no messages after this, something went > terribly wrong... > frame pointer is NULL, did you compile with > -fomit-frame-pointer? Aborting backtrace! > The manual page at http://dev.mysql.com/doc/mysql/en/crashing.htmlcontains > information that should help you find out what is causing the crash. > > > > ################################################## ################################################## ################################################## > > Any ideas > > Thanks and Regards > > Kaushal > |
| |||
| I have a PHP script that seems to be failing. I execute it using window.location.href("http://www.vote.com/vote2.php"): <?php $link = mysql_connect('localhost', 'login', 'password'); if (!$link) { die('Could not connect: ' . mysql_error()); } $result = use election if (!$result) { die('Could not connect: ' . mysql_error()); } $result = mysql_query("update election set Votes = Votes + 1 where Name='TheGuy'"); if (!$result) { $message = 'Invalid update: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $result; die($message); mysql_close($link); ?> |
| |||
| Hi. try this <?php mysql_connect('localhost', 'login', 'password') or die('Could not connect: ' . mysql_error()); mysql_select_db("election") or die ("Could not select election database"); $result = mysql_query("update election set Votes = Votes + 1 where Name='TheGuy'"); if (!$result) { $message = 'Invalid update: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $result; } mysql_close($link); die($message); ?> or this <?php $connect = mysql_connect('localhost', 'login', 'password'); if(!$connect){ die('Could not connect: ' . mysql_error()); } $db = mysql_select_db("election"); if(!$db){ die ("Could not select election database"); } $result = mysql_query("update election set Votes = Votes + 1 where Name='TheGuy'"); if (!$result) { $message = 'Invalid update: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $result; } mysql_close($link); die($message); ?> regards On Tue, May 6, 2008 at 4:39 PM, Michael Condon <admin@compinfosec.com> wrote: > I have a PHP script that seems to be failing. I execute it using > window.location.href("http://www.vote.com/vote2.php"): > > <?php > $link = mysql_connect('localhost', 'login', 'password'); > if (!$link) { > die('Could not connect: ' . mysql_error()); > } > $result = use election > if (!$result) { > die('Could not connect: ' . mysql_error()); > } > $result = mysql_query("update election set Votes = Votes + 1 where > Name='TheGuy'"); > if (!$result) { > $message = 'Invalid update: ' . mysql_error() . "\n"; > $message .= 'Whole query: ' . $result; > die($message); > > mysql_close($link); > ?> > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: > http://lists.mysql.com/mysql?unsub=s...ud@echovox.com > > -- Salah NAIT-M Echovox <http://www.m-boost.com> |
| |||
| On 6 May 2008, at 15:39, Michael Condon wrote: > I have a PHP script that seems to be failing. I execute it using > window.location.href("http://www.vote.com/vote2.php"): > > <?php > $link = mysql_connect('localhost', 'login', 'password'); > if (!$link) { > die('Could not connect: ' . mysql_error()); > } > $result = use election > if (!$result) { > die('Could not connect: ' . mysql_error()); > } > $result = mysql_query("update election set Votes = Votes + 1 where > Name='TheGuy'"); > if (!$result) { > $message = 'Invalid update: ' . mysql_error() . "\n"; > $message .= 'Whole query: ' . $result; > die($message); > > mysql_close($link); > ?> 1) What are you trying to do with "use election"?? 2) Missing } - opened for the last if. -Stut -- http://stut.net/ |
| |||
| In general, if I have a PHP-generated page that produces a blank page, I execute the PHP code from the command line. It will probably fall over dead somewhere along the line, but you'll know if there are any syntax errors. Regards, Jerry Schwartz The Infoshop by Global Information Incorporated 195 Farmington Ave. Farmington, CT 06032 860.674.8796 / FAX: 860.674.8341 www.the-infoshop.com www.giiexpress.com www.etudes-marche.com >-----Original Message----- >From: Michael Condon [mailto:admin@compinfosec.com] >Sent: Tuesday, May 06, 2008 10:39 AM >To: mysql@lists.mysql.com >Subject: PHP Question > >I have a PHP script that seems to be failing. I execute it using >window.location.href("http://www.vote.com/vote2.php"): > ><?php >$link = mysql_connect('localhost', 'login', 'password'); >if (!$link) { > die('Could not connect: ' . mysql_error()); >} >$result = use election >if (!$result) { > die('Could not connect: ' . mysql_error()); >} >$result = mysql_query("update election set Votes = Votes + 1 where >Name='TheGuy'"); > if (!$result) { > $message = 'Invalid update: ' . mysql_error() . "\n"; > $message .= 'Whole query: ' . $result; > die($message); > >mysql_close($link); >?> > > >-- >MySQL General Mailing List >For list archives: http://lists.mysql.com/mysql >To unsubscribe: http://lists.mysql.com/mysql?unsub=jschwartz@the- >infoshop.com |
| |||
| Hi Michael, Try placing the following at the top of your PHP code: ini_set('error_reporting', E_ALL | E_STRICT); ini_set('display_errors', 'On'); What error messages do you see on your page? On Tue, May 6, 2008 at 12:07 PM, Jerry Schwartz <jschwartz@the-infoshop.com> wrote: > In general, if I have a PHP-generated page that produces a blank page, I > execute the PHP code from the command line. It will probably fall over > dead > somewhere along the line, but you'll know if there are any syntax errors. > > Regards, > > Jerry Schwartz > The Infoshop by Global Information Incorporated > 195 Farmington Ave. > Farmington, CT 06032 > > 860.674.8796 / FAX: 860.674.8341 > > www.the-infoshop.com > www.giiexpress.com > www.etudes-marche.com > > >-----Original Message----- > >From: Michael Condon [mailto:admin@compinfosec.com] > >Sent: Tuesday, May 06, 2008 10:39 AM > >To: mysql@lists.mysql.com > >Subject: PHP Question > > > >I have a PHP script that seems to be failing. I execute it using > >window.location.href("http://www.vote.com/vote2.php"): > > > ><?php > >$link = mysql_connect('localhost', 'login', 'password'); > >if (!$link) { > > die('Could not connect: ' . mysql_error()); > >} > >$result = use election > >if (!$result) { > > die('Could not connect: ' . mysql_error()); > >} > >$result = mysql_query("update election set Votes = Votes + 1 where > >Name='TheGuy'"); > > if (!$result) { > > $message = 'Invalid update: ' . mysql_error() . "\n"; > > $message .= 'Whole query: ' . $result; > > die($message); > > > >mysql_close($link); > >?> > > > > > >-- > >MySQL General Mailing List > >For list archives: http://lists.mysql.com/mysql > >To unsubscribe: http://lists.mysql.com/mysql?unsub=jschwartz@the- > >infoshop.com > > > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com/mysql?unsub=dsteplight@gmail.com > > |
| ||||
| This may be a bit off topic, but useful nonetheless. I've released a web site dedicated to security issues only, and it has not only useful links but roll marquees displaying all of the latest patch/threat/virus/vulnerability issues. It's intended as a "one stop" url for all of the security news an IT professional needs. Take a look: www.compinfosec.com |