Unix Technical Forum

MySQL server exits

This is a discussion on MySQL server exits within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello, Under a newly installed copy of Slackware 12, I did a "chmod +x rc.mysqld" to ensure that mysqld ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-28-2008, 04:37 AM
plenty900@yahoo.com
 
Posts: n/a
Default MySQL server exits

Hello,

Under a newly installed copy of Slackware 12, I did a
"chmod +x rc.mysqld" to ensure that mysqld is started
during boot up. I then rebooted and tried to run
mysqladmin to set the database's root password.
I also tried the database initialization script.
Unfortunately it seems that mysqld_safe refuses to run
under Slackware. I even discovered that the rc.mysql script
fails during startup.

Anybody know how to fix this?

I then tried uninstalling and then compiling MySQL from
source and installing that, but the server continues
to exit during boot-up and when I try to run it
from the command line, and without any useful error message.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-28-2008, 04:37 AM
Jerry Stuckle
 
Posts: n/a
Default Re: MySQL server exits

plenty900@yahoo.com wrote:
> Hello,
>
> Under a newly installed copy of Slackware 12, I did a
> "chmod +x rc.mysqld" to ensure that mysqld is started
> during boot up. I then rebooted and tried to run
> mysqladmin to set the database's root password.
> I also tried the database initialization script.
> Unfortunately it seems that mysqld_safe refuses to run
> under Slackware. I even discovered that the rc.mysql script
> fails during startup.
>
> Anybody know how to fix this?
>
> I then tried uninstalling and then compiling MySQL from
> source and installing that, but the server continues
> to exit during boot-up and when I try to run it
> from the command line, and without any useful error message.
>
> Thanks.
>


Anything in the MySQL or system log files?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-28-2008, 04:37 AM
Ana C. Dent
 
Posts: n/a
Default Re: MySQL server exits

plenty900@yahoo.com wrote in news:c59ebd27-0231-4e78-b4c2-d5db062796e8
@u69g2000hse.googlegroups.com:

> Hello,
>
> Under a newly installed copy of Slackware 12, I did a
> "chmod +x rc.mysqld" to ensure that mysqld is started
> during boot up. I then rebooted and tried to run
> mysqladmin to set the database's root password.
> I also tried the database initialization script.
> Unfortunately it seems that mysqld_safe refuses to run
> under Slackware. I even discovered that the rc.mysql script
> fails during startup.
>
> Anybody know how to fix this?
>
> I then tried uninstalling and then compiling MySQL from
> source and installing that, but the server continues
> to exit during boot-up and when I try to run it
> from the command line, and without any useful error message.
>
> Thanks.
>


Is there any interesting information in the error log file?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-28-2008, 04:37 AM
Dave Uhring
 
Posts: n/a
Default Re: MySQL server exits

On Thu, 27 Mar 2008 18:32:18 -0700, plenty900 wrote:

> Under a newly installed copy of Slackware 12, I did a "chmod +x
> rc.mysqld" to ensure that mysqld is started during boot up. I then
> rebooted and tried to run mysqladmin to set the database's root
> password. I also tried the database initialization script. Unfortunately
> it seems that mysqld_safe refuses to run under Slackware. I even
> discovered that the rc.mysql script fails during startup.


Did you install the initial databases?

/usr/bin/mysql_install_db
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-28-2008, 04:37 AM
Richard James
 
Posts: n/a
Default Re: MySQL server exits

On Thu, 27 Mar 2008 18:32:18 -0700, plenty900 wrote:

> I then tried uninstalling and then compiling MySQL from source and
> installing that, but the server continues to exit during boot-up and
> when I try to run it from the command line, and without any useful error
> message.


Am I correct in assuming that the first version of MySQL you tired to get
running was the Slackware Package that comes with Slackware 12 CD or DVD?

When I try this from a new SW 12 install in a Virtual Machine the
following happens
# ./rc.mysqld start
# nohup redirecting stderr to stdout
Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server fro pid file /var/run/mysql/mysql.pid
080329 07:41:17 mysql ended

Does a similar thing happen to your system?
then run the following command
su mysql -c 'mysql_install_db'

This will install the base mysql database with the correct permissions.

Richard James
--
sig fail on line -1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-28-2008, 04:37 AM
Res
 
Posts: n/a
Default Re: MySQL server exits

On Fri, 28 Mar 2008, Dave Uhring wrote:

> Did you install the initial databases?
>
> /usr/bin/mysql_install_db


and I bet they have not made sure /var/lib/mysql is writable by
the user/group mysql



--
Cheers
Res

mysql> update auth set Framed-IP-Address='127.0.0.127' where user= 'troll';
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-03-2008, 02:46 PM
plenty900@yahoo.com
 
Posts: n/a
Default Re: MySQL server exits


> Is there any interesting information in the error log file?


It turns out, my [hostname].err file shows that mysqld can't find a
file called host.frm.

I don't recall such a file when I recently installed MySQL under
Windows.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-03-2008, 02:46 PM
plenty900@yahoo.com
 
Posts: n/a
Default Re: MySQL server exits


> Am I correct in assuming that the first version of MySQL you tired to get
> running was the Slackware Package that comes with Slackware 12 CD or DVD?


It's the Slackware 12 DVD. I downloaded it just days after version 12
was announced.

> When I try this from a new SW 12 install in a Virtual Machine the
> following happens
> # ./rc.mysqld start
> # nohup redirecting stderr to stdout
> Starting mysqld daemon with databases from /var/lib/mysql
> STOPPING server fro pid file /var/run/mysql/mysql.pid
> 080329 07:41:17 mysql ended


Yes, this happens but the error log shows that a host.frm file is
missing.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-03-2008, 02:46 PM
Res
 
Posts: n/a
Default Re: MySQL server exits

permissions error, seen it before

On Fri, 28 Mar 2008, plenty900@yahoo.com wrote:

>
>
>> Is there any interesting information in the error log file?

>
> It turns out, my [hostname].err file shows that mysqld can't find a
> file called host.frm.
>
> I don't recall such a file when I recently installed MySQL under
> Windows.
>


--
Cheers
Res

mysql> update auth set Framed-IP-Address='127.0.0.127' where user= 'troll';
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-03-2008, 02:46 PM
Dave Uhring
 
Posts: n/a
Default Re: MySQL server exits

On Fri, 28 Mar 2008 08:45:49 -0500, Peter H. Coffin wrote:

....snip...

> So it's likely someone building a package missed the file
> trying to run around the normal mysql_install_db script.


Nobody missed anything in the packaging; Slackware has always required
that mysql_install_db be run prior to using mysql.

The reason is quite simply understood. Slackware ships with packages made
from unaltered sources and building mysql source does not result in the
generation of the initial database set.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:34 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com