Re: MySQL: Problem Installing on RH 7.3

2002-07-23 Thread Trond Eivind Glomsrød

Philip Molter [EMAIL PROTECTED] writes:

 On Thu, Jul 18, 2002 at 11:44:14AM -0400, Richard Fox wrote:
 : The mysqld.log file says:
 : 
 : 020717 13:05:05  mysqld started
 : 020717 13:05:05  /usr/local/libexec/mysqld: Can't find file:
 : './mysql/host.frm' (errno: 13)
 : 020717 13:05:05  mysqld ended
 : 
 : But I do see the host.frm file:
 : 
 : -rw-rw1 root root 8958 Jul 17 13:04
 : /var/lib/mysql/mysql/host.frm
 : 
 : How did you fix this problem?
 
 Permissions are wrong.  MySQL typically runs as mysql:mysql, not
 root:root.  If I remember correctly, there may have been a problem
 with the setup scripts that handled this.  Check the RH bug reports.
 The fix is simply to change owner/groups on the necessary
 files/directories.
 
 But Trond can give you specifics.  It still may be user error. :)

If memory serves... There were some permission problems in RHL 7,
fixed in an errata a couple of days after release.

The most common problem for a while was people running
mysql_install_db as root - the dbs will be created, but owned by
root. The database doesn't run as root, and can't write to it.

There has been a workaround for that in the initscripts as well.
-- 
Trond Eivind Glomsrød
Red Hat, Inc.

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL: Problem Installing on RH 7.3

2002-07-19 Thread jusob

En réponse à Philip Molter [EMAIL PROTECTED]:
Hi
I am sure that tehre is a bug in RH 7.3
I've said it several times in this mailing list, but nobody wants to belive me!
It's true that this information is difficult to find, but I've learned it on 
the documentation of www.mysql.org, the one with user comments.

Regards
Julien Sobrier

 On Thu, Jul 18, 2002 at 11:44:14AM -0400, Richard Fox wrote:
 : The mysqld.log file says:
 : 
 : 020717 13:05:05  mysqld started
 : 020717 13:05:05  /usr/local/libexec/mysqld: Can't find file:
 : './mysql/host.frm' (errno: 13)
 : 020717 13:05:05  mysqld ended
 : 
 : But I do see the host.frm file:
 : 
 : -rw-rw1 root root 8958 Jul 17 13:04
 : /var/lib/mysql/mysql/host.frm
 : 
 : How did you fix this problem?
 
 Permissions are wrong.  MySQL typically runs as mysql:mysql, not
 root:root.  If I remember correctly, there may have been a problem
 with the setup scripts that handled this.  Check the RH bug reports.
 The fix is simply to change owner/groups on the necessary
 files/directories.
 
 But Trond can give you specifics.  It still may be user error. :)
 
 : I do have the /var/lib/mysql/mysql.sock file...
 
 * Philip Molter
 * Texas.net Internet
 * http://www.texas.net/
 * [EMAIL PROTECTED]
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 
 

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL: Problem Installing on RH 7.3

2002-07-18 Thread Richard Fox

The mysqld.log file says:

020717 13:05:05  mysqld started
020717 13:05:05  /usr/local/libexec/mysqld: Can't find file:
'./mysql/host.frm' (errno: 13)
020717 13:05:05  mysqld ended

But I do see the host.frm file:

-rw-rw1 root root 8958 Jul 17 13:04
/var/lib/mysql/mysql/host.frm

How did you fix this problem?

I do have the /var/lib/mysql/mysql.sock file...

Thanks
Rich

 I'm near enough in the same position as you are. Check the file
 /var/log/mysqld.log to see what the problem is. I had a problem accessing
 the file './mysql/host.frm', but I think that I've fixed this now.

 What happens when you try the 'mysql' command? I get the response
 can't connect to local MySQL server through socket
 '/var/usr/mysql/mysql.sock'
 And indeed there is no such file.
 Do you have this file?

 -Original Message-
 From: Richard Fox [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 17, 2002 10:41 PM
 To: [EMAIL PROTECTED]
 Subject: MySQL: Problem Installing on RH 7.3



 The MySQL daemon does not run. I installed the binary RPM's from the RH
cd,
 MySQL 3.23.49. I run mysql_install_db, outputs some text and appears to
 execute correctly. The I run safe_mysqld , and I get:

 [root@thor rfox]# /usr/bin/safe_mysqld 
 [1] 2212
 [root@thor rfox]# Starting mysqld daemon with databases from
/var/lib/mysql
 020717 15:21:28  mysqld ended

 That's it! I tried both the rpm and compiling it myself from source with
 BOTH gcc 2.96 and gcc 3.0.4. Exact same behavior

 I just need a little hint, please! How do I troubleshoot this?

 Thanks,

 Rich

 sql


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL: Problem Installing on RH 7.3

2002-07-18 Thread Jan Kudrman

I am not sure, but are you sure that mysqld is running as a root? Or as a
mysql (user) and mysql (group).

Try to check rights of the mysqld user.

Jan


- Original Message -
From: Richard Fox [EMAIL PROTECTED]
To: Noamn [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, July 18, 2002 5:44 PM
Subject: Re: MySQL: Problem Installing on RH 7.3


The mysqld.log file says:

020717 13:05:05  mysqld started
020717 13:05:05  /usr/local/libexec/mysqld: Can't find file:
'./mysql/host.frm' (errno: 13)
020717 13:05:05  mysqld ended

But I do see the host.frm file:

-rw-rw1 root root 8958 Jul 17 13:04
/var/lib/mysql/mysql/host.frm

How did you fix this problem?

I do have the /var/lib/mysql/mysql.sock file...

Thanks
Rich

 I'm near enough in the same position as you are. Check the file
 /var/log/mysqld.log to see what the problem is. I had a problem accessing
 the file './mysql/host.frm', but I think that I've fixed this now.

 What happens when you try the 'mysql' command? I get the response
 can't connect to local MySQL server through socket
 '/var/usr/mysql/mysql.sock'
 And indeed there is no such file.
 Do you have this file?

 -Original Message-
 From: Richard Fox [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 17, 2002 10:41 PM
 To: [EMAIL PROTECTED]
 Subject: MySQL: Problem Installing on RH 7.3



 The MySQL daemon does not run. I installed the binary RPM's from the RH
cd,
 MySQL 3.23.49. I run mysql_install_db, outputs some text and appears to
 execute correctly. The I run safe_mysqld , and I get:

 [root@thor rfox]# /usr/bin/safe_mysqld 
 [1] 2212
 [root@thor rfox]# Starting mysqld daemon with databases from
/var/lib/mysql
 020717 15:21:28  mysqld ended

 That's it! I tried both the rpm and compiling it myself from source with
 BOTH gcc 2.96 and gcc 3.0.4. Exact same behavior

 I just need a little hint, please! How do I troubleshoot this?

 Thanks,

 Rich

 sql


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: MySQL: Problem Installing on RH 7.3

2002-07-18 Thread Mark Schoonover

At first blush it looks like it's a rights problem. Need to have the
/var/lib/mysql owned by mysql.mysql... If you're starting mysql as the user
mysql...

HTH

.mark

 -Original Message-
 From: Richard Fox [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 8:44 AM
 To: Noamn; [EMAIL PROTECTED]
 Subject: Re: MySQL: Problem Installing on RH 7.3
 
 
 The mysqld.log file says:
 
 020717 13:05:05  mysqld started
 020717 13:05:05  /usr/local/libexec/mysqld: Can't find file:
 './mysql/host.frm' (errno: 13)
 020717 13:05:05  mysqld ended
 
 But I do see the host.frm file:
 
 -rw-rw1 root root 8958 Jul 17 13:04
 /var/lib/mysql/mysql/host.frm
 
 How did you fix this problem?
 
 I do have the /var/lib/mysql/mysql.sock file...
 
 Thanks
 Rich
 
  I'm near enough in the same position as you are. Check the file
  /var/log/mysqld.log to see what the problem is. I had a 
 problem accessing
  the file './mysql/host.frm', but I think that I've fixed this now.
 
  What happens when you try the 'mysql' command? I get the response
  can't connect to local MySQL server through socket
  '/var/usr/mysql/mysql.sock'
  And indeed there is no such file.
  Do you have this file?
 
  -Original Message-
  From: Richard Fox [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 17, 2002 10:41 PM
  To: [EMAIL PROTECTED]
  Subject: MySQL: Problem Installing on RH 7.3
 
 
 
  The MySQL daemon does not run. I installed the binary RPM's 
 from the RH
 cd,
  MySQL 3.23.49. I run mysql_install_db, outputs some text 
 and appears to
  execute correctly. The I run safe_mysqld , and I get:
 
  [root@thor rfox]# /usr/bin/safe_mysqld 
  [1] 2212
  [root@thor rfox]# Starting mysqld daemon with databases from
 /var/lib/mysql
  020717 15:21:28  mysqld ended
 
  That's it! I tried both the rpm and compiling it myself 
 from source with
  BOTH gcc 2.96 and gcc 3.0.4. Exact same behavior
 
  I just need a little hint, please! How do I troubleshoot this?
 
  Thanks,
 
  Rich
 
  sql
 
 
  
 -
  Before posting, please check:
 http://www.mysql.com/manual.php   (the manual)
 http://lists.mysql.com/   (the list archive)
 
  To request this thread, e-mail [EMAIL PROTECTED]
  To unsubscribe, e-mail
  [EMAIL PROTECTED]
  Trouble unsubscribing? Try: 
 http://lists.mysql.com/php/unsubscribe.php
 
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail 
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 
 


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL: Problem Installing on RH 7.3

2002-07-18 Thread Ryan Fox

First, nice username :)

Anyhow, use the /etc/init.d/mysqld script as root to start/stop mysql,
not the safe_mysqld binary.  The init.d script really calls the
safe_mysqld binary, but ti also makes a couple sanity checks like
ensuring that the initial database files exist and are owned by the
proper user.
 
Example:
# /etc/init.d/mysqld start

This should get you past the problem you are currently having, which is
that mysqld can't find it's database files.  This is mostly due to
redhat's mysql rpm installing the database files in a different location
than mysql's distibution does.

Hope this helps,
Ryan Fox
[EMAIL PROTECTED]


On Thu, 2002-07-18 at 11:44, Richard Fox wrote:
 The mysqld.log file says:
 
 020717 13:05:05  mysqld started
 020717 13:05:05  /usr/local/libexec/mysqld: Can't find file:
 './mysql/host.frm' (errno: 13)
 020717 13:05:05  mysqld ended
 
 But I do see the host.frm file:
 
 -rw-rw1 root root 8958 Jul 17 13:04
 /var/lib/mysql/mysql/host.frm
 
 How did you fix this problem?
 
 I do have the /var/lib/mysql/mysql.sock file...
 
 Thanks
 Rich
 
  I'm near enough in the same position as you are. Check the file
  /var/log/mysqld.log to see what the problem is. I had a problem accessing
  the file './mysql/host.frm', but I think that I've fixed this now.
 
  What happens when you try the 'mysql' command? I get the response
  can't connect to local MySQL server through socket
  '/var/usr/mysql/mysql.sock'
  And indeed there is no such file.
  Do you have this file?
 
  -Original Message-
  From: Richard Fox [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 17, 2002 10:41 PM
  To: [EMAIL PROTECTED]
  Subject: MySQL: Problem Installing on RH 7.3
 
 
 
  The MySQL daemon does not run. I installed the binary RPM's from the RH
 cd,
  MySQL 3.23.49. I run mysql_install_db, outputs some text and appears to
  execute correctly. The I run safe_mysqld , and I get:
 
  [root@thor rfox]# /usr/bin/safe_mysqld 
  [1] 2212
  [root@thor rfox]# Starting mysqld daemon with databases from
 /var/lib/mysql
  020717 15:21:28  mysqld ended
 
  That's it! I tried both the rpm and compiling it myself from source with
  BOTH gcc 2.96 and gcc 3.0.4. Exact same behavior
 
  I just need a little hint, please! How do I troubleshoot this?
 
  Thanks,
 
  Rich
 
  sql
 
 
  -
  Before posting, please check:
 http://www.mysql.com/manual.php   (the manual)
 http://lists.mysql.com/   (the list archive)
 
  To request this thread, e-mail [EMAIL PROTECTED]
  To unsubscribe, e-mail
  [EMAIL PROTECTED]
  Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL: Problem Installing on RH 7.3

2002-07-18 Thread Gerald Clark

You can see them because you are root, and you own them.
Mysql can't see them because it is mysql.
chown   -R  mysql  /var/lib/mysql

Richard Fox wrote:

The mysqld.log file says:

020717 13:05:05  mysqld started
020717 13:05:05  /usr/local/libexec/mysqld: Can't find file:
'./mysql/host.frm' (errno: 13)
020717 13:05:05  mysqld ended

But I do see the host.frm file:

-rw-rw1 root root 8958 Jul 17 13:04
/var/lib/mysql/mysql/host.frm

How did you fix this problem?

I do have the /var/lib/mysql/mysql.sock file...

Thanks
Rich

I'm near enough in the same position as you are. Check the file
/var/log/mysqld.log to see what the problem is. I had a problem accessing
the file './mysql/host.frm', but I think that I've fixed this now.

What happens when you try the 'mysql' command? I get the response
can't connect to local MySQL server through socket
'/var/usr/mysql/mysql.sock'
And indeed there is no such file.
Do you have this file?

-Original Message-
From: Richard Fox [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 10:41 PM
To: [EMAIL PROTECTED]
Subject: MySQL: Problem Installing on RH 7.3



The MySQL daemon does not run. I installed the binary RPM's from the RH

cd,

MySQL 3.23.49. I run mysql_install_db, outputs some text and appears to
execute correctly. The I run safe_mysqld , and I get:

[root@thor rfox]# /usr/bin/safe_mysqld 
[1] 2212
[root@thor rfox]# Starting mysqld daemon with databases from

/var/lib/mysql

020717 15:21:28  mysqld ended

That's it! I tried both the rpm and compiling it myself from source with
BOTH gcc 2.96 and gcc 3.0.4. Exact same behavior

I just need a little hint, please! How do I troubleshoot this?

Thanks,

Rich

sql


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail 
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL: Problem Installing on RH 7.3

2002-07-18 Thread Philip Molter

On Thu, Jul 18, 2002 at 11:44:14AM -0400, Richard Fox wrote:
: The mysqld.log file says:
: 
: 020717 13:05:05  mysqld started
: 020717 13:05:05  /usr/local/libexec/mysqld: Can't find file:
: './mysql/host.frm' (errno: 13)
: 020717 13:05:05  mysqld ended
: 
: But I do see the host.frm file:
: 
: -rw-rw1 root root 8958 Jul 17 13:04
: /var/lib/mysql/mysql/host.frm
: 
: How did you fix this problem?

Permissions are wrong.  MySQL typically runs as mysql:mysql, not
root:root.  If I remember correctly, there may have been a problem
with the setup scripts that handled this.  Check the RH bug reports.
The fix is simply to change owner/groups on the necessary
files/directories.

But Trond can give you specifics.  It still may be user error. :)

: I do have the /var/lib/mysql/mysql.sock file...

* Philip Molter
* Texas.net Internet
* http://www.texas.net/
* [EMAIL PROTECTED]

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: MySQL: Problem Installing on RH 7.3

2002-07-17 Thread Cal Evans

Dig around for a log file or an error file. Whenever it won't start it tells
you why (or gives you a hint) in the error file.  tail it and post if you
still need help.

=C=

*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*


-Original Message-
From: Richard Fox [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 3:41 PM
To: [EMAIL PROTECTED]
Subject: MySQL: Problem Installing on RH 7.3



The MySQL daemon does not run. I installed the binary RPM's from the RH cd,
MySQL 3.23.49. I run mysql_install_db, outputs some text and appears to
execute correctly. The I run safe_mysqld , and I get:

[root@thor rfox]# /usr/bin/safe_mysqld 
[1] 2212
[root@thor rfox]# Starting mysqld daemon with databases from /var/lib/mysql
020717 15:21:28  mysqld ended

That's it! I tried both the rpm and compiling it myself from source with
BOTH gcc 2.96 and gcc 3.0.4. Exact same behavior

I just need a little hint, please! How do I troubleshoot this?

Thanks,

Rich

sql


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL: Problem Installing on RH 7.3

2002-07-17 Thread Philip Molter

On Wed, Jul 17, 2002 at 04:40:50PM -0400, Richard Fox wrote:
: 
: The MySQL daemon does not run. I installed the binary RPM's from the RH cd,
: MySQL 3.23.49. I run mysql_install_db, outputs some text and appears to
: execute correctly. The I run safe_mysqld , and I get:
: 
: [root@thor rfox]# /usr/bin/safe_mysqld 
: [1] 2212
: [root@thor rfox]# Starting mysqld daemon with databases from /var/lib/mysql
: 020717 15:21:28  mysqld ended
: 
: That's it! I tried both the rpm and compiling it myself from source with
: BOTH gcc 2.96 and gcc 3.0.4. Exact same behavior

If it's the RPMs from RH, have you tried /etc/init.d/mysqld start?
That's the standard way of starting services on RH.  Have you looked
in /var/log/mysqld.log for any errors?

* Philip Molter
* Texas.net Internet
* http://www.texas.net/
* [EMAIL PROTECTED]

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php