LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 09-22-2004, 10:59 PM   #1
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 197
Thanked: 2
MySql Thread error on startup


[Log in to get rid of this advertisement]
I am running Mandrake 10.0. I wanted to install the latest version of Mysql so I grab both the client and server RPM's from mysql.com and installed them like the docs say "rpm -i server.rpm" and "rpm -i client".

Here is the problem. As soon as it installed the server the RPM tried to run mysql_install_db to initialize the grant tables and it errored out with
Quote:
"Warning: Asked for 196608 thread stack, but got 126976
040922 22:54:29 /usr/sbin/mysqld: Shutdown Complete
I have no idea what this means other than I can't start the server up. I get this everytime I try and run mysqld or mysqld_safe --user=mysql & or mysql_install_db Doing some internet searches it seems that it might have something to do with the kernal restricting the amount of threads the daemon is requesting. But I have no idea how to alter or fix that.

This is really a bummer as I wanted to get Atomic photo album up and running on my website...

Any thoughts??

Biggen is offline     Reply With Quote
Old 09-22-2004, 11:25 PM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 894
Thanked: 5
I think the thread message is just a warning, and shouldn't cause a shutdown - was there anything else above that that mentioned an error?
CroMagnon is offline     Reply With Quote
Old 09-22-2004, 11:28 PM   #3
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 197
Thanked: 2

Original Poster
Hey!

Actually, no, this is the only error on screen that is reported. It simply shuts the server down after this is reported.

I am extremely new to Mysql so I don't know if there are any logs available to look at. I am sure there are, I just don't know how to turn them on or access them...
Biggen is offline     Reply With Quote
Old 09-22-2004, 11:33 PM   #4
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 197
Thanked: 2

Original Poster
Well I found the error log file that was created! Not sure if this helps but here it is.

Quote:
040922 22:03:29 mysqld started
040922 22:03:29 Warning: Asked for 196608 thread stack, but got 126976
^G/usr/sbin/mysqld: Can't read dir of '/root/tmp/' (Errcode: 13)
^G/usr/sbin/mysqld: Can't create/write to file '/root/tmp/ibtuYQJn' (Errcode: 13)
040922 22:03:29 InnoDB: Error: unable to create temporary file; errno: 13
040922 22:03:29 Can't init databases
040922 22:03:29 Aborting

040922 22:03:29 InnoDB: Warning: shutting down a not properly started
InnoDB: or created database!
040922 22:03:29 /usr/sbin/mysqld: Shutdown Complete

040922 22:03:29 mysqld ended

040922 22:17:00 mysqld started
040922 22:17:00 Warning: Asked for 196608 thread stack, but got 126976
^G/usr/sbin/mysqld: Can't read dir of '/root/tmp/' (Errcode: 13)
^G/usr/sbin/mysqld: Can't create/write to file '/root/tmp/ibOfKyCt' (Errcode: 13)
040922 22:17:00 InnoDB: Error: unable to create temporary file; errno: 13
040922 22:17:00 Can't init databases
040922 22:17:00 Aborting

040922 22:17:00 InnoDB: Warning: shutting down a not properly started
InnoDB: or created database!
040922 22:17:00 /usr/sbin/mysqld: Shutdown Complete

040922 22:17:00 mysqld ended

040922 22:26:57 mysqld started
040922 22:26:57 Warning: Asked for 196608 thread stack, but got 126976
^G/usr/sbin/mysqld: Can't read dir of '/root/tmp/' (Errcode: 13)
^G/usr/sbin/mysqld: Can't create/write to file '/root/tmp/ib7WSnHV' (Errcode: 13)
040922 22:26:57 InnoDB: Error: unable to create temporary file; errno: 13
040922 22:26:57 Can't init databases
040922 22:26:57 Aborting

040922 22:26:57 InnoDB: Warning: shutting down a not properly started
InnoDB: or created database!
040922 22:26:57 /usr/sbin/mysqld: Shutdown Complete

040922 22:26:57 mysqld ended
Biggen is offline     Reply With Quote
Old 09-23-2004, 12:13 AM   #5
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 894
Thanked: 5
Why is mysql trying to use the /root directory? Did you provide /root as an option when it was being configured? This is almost certainly where your problem is - mysql shouldn't be running with root permissions, and so it won't have permission to use the /root folder. You should set up (well, the installation should have set up, but never mind that now) a directory under /var for mysql to use for it's data, and make sure the mysql daemon user has full access to it.
CroMagnon is offline     Reply With Quote
Old 09-23-2004, 07:44 AM   #6
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 197
Thanked: 2

Original Poster
Hmm.. Well, all I did was run the "rpm -i xxx.client" and "rpm -i xxx.server" files. I did not add anything to the command lines when they were run. I did run them as root, however if that makes a differences.

Like I said, I followed the instructions exactly as outlined on www.mysql.com.

So what do I do. Do I need to uninstall the rpms and start over??
Biggen is offline     Reply With Quote
Old 09-23-2004, 08:07 PM   #7
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 894
Thanked: 5
I wouldn't go that far. Have a look in the configuration files for anything that mentions /root.
CroMagnon is offline     Reply With Quote
Old 09-30-2004, 07:51 AM   #8
phaze2
LQ Newbie
 
Registered: Sep 2004
Posts: 2
Thanked: 0
Talking No worries

Biggen,

export TMPDIR=/tmp
Then try and launch mysql again. You may want to make sure that TMPDIR is set to /tmp for the user that launches mysql in future. Or manually set it in the mysql startup script.

I've reported this as a bug. They're probably going to claim it's a feature, but I thought I'd give it a shot anyway cos it wasted an hour of my time.
http://bugs.mysql.com/bug.php?id=5822

Mark.
phaze2 is offline     Reply With Quote
Old 09-30-2004, 07:57 AM   #9
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 197
Thanked: 2

Original Poster
Excellent! Works like a charm, Phaze.

Make sure you fix the link (in the MySql bug area) you posted that points back to this thread. It seems that the end of the link got cutoff and the numbers "4077" aren't included...
Biggen is offline     Reply With Quote
Old 09-30-2004, 09:05 AM   #10
phaze2
LQ Newbie
 
Registered: Sep 2004
Posts: 2
Thanked: 0
Smile no worries

Hmmm, link works for me, but I'm using firefox. Wonder if it's an IE thing. Too lazy to check the HTML source of the board.

Remember that you're using a Gamma release of mysql and not a production release. If there are features you specifically need that the production release doesn't have, then stick with it. I am. Otherwise be aware that you may run into more issues like the above - and when you do be sure to search bugs.mysql.com for help.

Also, that log message of:
Warning: Asked for 196608 thread stack, but got 126976
Has been reported in the bugs database. It's nothing to worry about, but check the bugs if you want to know more.
phaze2 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 02:52 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM
MySQL startup error goosie Linux - Software 13 11-16-2005 04:30 PM
SOLVED - mysql administrator startup error bking Linux - Software 0 02-10-2005 09:53 PM
ALSA Startup error, MPlayer startup error, Sid andymadigan Debian 4 08-03-2004 05:15 PM


All times are GMT -5. The time now is 05:52 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration