LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-08-2006, 04:54 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
Mysql crashes on grant statement


I recently upgraded to mysql 5.0.26 and have been regretting it every since. One of the things which relies on it because the perms are wrong so I issued the following statement:
Code:
mysql> grant update on somedb.sometable to someuser@localhost;
ERROR 2013 (HY000): Lost connection to MySQL server during query
This happens every single time. Mysql silently dies. The mysql client returns that the connection has been lost and I have to restart the database.
The mysqld.err log shows the following:
Code:
061208 10:48:00  InnoDB: Started; log sequence number 0 5711233
061208 10:48:00 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.0.26'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Gentoo Linux mysql-5.0.26-r1
mysqld got signal 11;
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=16777216
read_buffer_size=258048
max_used_connections=2
max_connections=100
threads_connected=2
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 92783 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd=0x8b65858
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...
Cannot determine thread, fp=0xac62bc18, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
0x8180986
0x8457bbb
0x8458195
0x821350b
0x819c31a
0x819eebc
0x819ff5d
0x81a07a8
0x81a11ba
0xb7dad604
0xb7c0631e
New value of fp=(nil) failed sanity check, terminating stack trace!
Please read http://dev.mysql.com/doc/mysql/en/Using_stack_trace.html and follow instructions on how to resolve the stack trace. Resolved
stack trace is much more helpful in diagnosing the problem, so please do 
resolve it
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x8b6f590 = grant update on somedb.sometable to someuser@localhost
thd->thread_id=2
The manual page at http://www.mysql.com/doc/en/Crashing.html contains
information that should help you find out what is causing the crash.
061208 10:48:24  InnoDB: Started; log sequence number 0 5711233
061208 10:48:24 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.0.26'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Gentoo Linux mysql-5.0.26-r1
I'm not sure if this is a bug or what but I am really getting tired of things breaking when I upgrade them. I'm supposed to be running gentoo "stable".

I'm also not sure what I can do about this. I have to run that grant statement or the webapp won't work. I don't understand why mysql is crashing. The table does exist (and even if it didn't the whole mysqld shouldn't crash!).

Any ideas?
 
Old 12-09-2006, 02:54 PM   #2
unreal128
Member
 
Registered: Jun 2003
Distribution: SuSE, Slackware, Gentoo
Posts: 207

Rep: Reputation: 30
Your right. MySQL should not die just because you have a malformed GRANT statement or otherwise. Since you are using Gentoo, I would suggest re-emerging MySQL; type this...
Code:
emerge -C mysql
emerge --sync && emerge -u portage
emerge -avD mysql
This will make sure MySQL gets re-emerged with all the dependencies needed. Make sure the USE flags are what you want them to be; if you need to know which USE flags are what, check out /usr/portage/profiles/use.desc.
 
Old 12-09-2006, 03:26 PM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
my server is synced every day since I have a portage mirror in house and I have tried re-emerging mysql. I think I will have to try re-emerging with the deps as well since it's possible that some lib is causing the crashing.

Last edited by humbletech99; 12-09-2006 at 03:34 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grant Privileges - MySQL Jannyno Linux - General 2 06-23-2012 02:00 AM
Why mysql GRANT does not work? robertoneto123 Linux - Software 2 01-23-2004 07:33 AM
Updating MySQL grant tables... sigep739 Linux - Newbie 2 01-03-2004 11:57 PM
mysql grant issues Robin01 Linux - Newbie 1 10-29-2003 09:56 PM
MYSQL GRANT etc etc markopolox Programming 8 09-23-2003 02:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration