Odd problem issueing commands at the console

2001-06-26 Thread Peter Matulis

Just installed 3.23.37 on Red Hat 7.0 from source.  I've done this a few
times but this time I encountered a mysterious problem.

a) server is started and runs under my designated user (mysqladm:mysqlgrp)
b) /usr/local/mysql/bin is in PATH of both root and mysqladm
c) using either of these users, when I issue a mysql command (here
mysqlshow):

mysqlshow: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (111)

d) when I cd to /usr/local/mysql/bin and issue the command as shown it
succeeds:

$ ./mysqlshow 
+-+
|  Databases  |
+-+
| mysql   |
| test  |
+--+

What's going on here?

Peter Matulis

-
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: Odd problem issueing commands at the console

2001-06-26 Thread Hannes Niedner

Could it be that you have two mysql client binaries accessing two different
config files - some remainders of a previous MySQL installation?

Hannes


On 6/26/01 9:02 AM, Peter Matulis [EMAIL PROTECTED] wrote:

 Just installed 3.23.37 on Red Hat 7.0 from source.  I've done this a few
 times but this time I encountered a mysterious problem.
 
 a) server is started and runs under my designated user (mysqladm:mysqlgrp)
 b) /usr/local/mysql/bin is in PATH of both root and mysqladm
 c) using either of these users, when I issue a mysql command (here
 mysqlshow):
 
 mysqlshow: Can't connect to local MySQL server through socket
 '/var/lib/mysql/mysql.sock' (111)
 
 d) when I cd to /usr/local/mysql/bin and issue the command as shown it
 succeeds:
 
 $ ./mysqlshow 
 +-+
 |  Databases  |
 +-+
 | mysql   |
 | test  |
 +--+
 
 What's going on here?
 
 Peter Matulis
 
 -
 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: Odd problem issueing commands at the console

2001-06-26 Thread J Strickland

You must have an rpm installation of mysql and your source installation.
Check to see if there are mysql* commands within /usr/bin directory. It's
going to search there first, then /usr/local/bin. The commands within
/usr/bin are going to look for the mysql-everthing within /var/lib/

Jonathan
- Original Message -
From: Peter Matulis [EMAIL PROTECTED]
To: Mysql (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, June 26, 2001 12:02 PM
Subject: Odd problem issueing commands at the console


 Just installed 3.23.37 on Red Hat 7.0 from source.  I've done this a few
 times but this time I encountered a mysterious problem.

 a) server is started and runs under my designated user (mysqladm:mysqlgrp)
 b) /usr/local/mysql/bin is in PATH of both root and mysqladm
 c) using either of these users, when I issue a mysql command (here
 mysqlshow):

 mysqlshow: Can't connect to local MySQL server through socket
 '/var/lib/mysql/mysql.sock' (111)

 d) when I cd to /usr/local/mysql/bin and issue the command as shown it
 succeeds:

 $ ./mysqlshow
 +-+
 |  Databases  |
 +-+
 | mysql   |
 | test  |
 +--+

 What's going on here?

 Peter Matulis

 -
 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: Odd problem issueing commands at the console

2001-06-26 Thread sean . odonnell

I had the same problem last night,

eventually grant all to root on *.* identified by 'yourpass' got me in
I must have mucked up the permissions at 
(the problem was with mysqlgui not mysqlshow though)

Sean

-Original Message-
From: Peter Matulis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 5:03 PM
To: Mysql (E-mail)
Subject: Odd problem issueing commands at the console


Just installed 3.23.37 on Red Hat 7.0 from source.  I've done this a few
times but this time I encountered a mysterious problem.

a) server is started and runs under my designated user (mysqladm:mysqlgrp)
b) /usr/local/mysql/bin is in PATH of both root and mysqladm
c) using either of these users, when I issue a mysql command (here
mysqlshow):

mysqlshow: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (111)

d) when I cd to /usr/local/mysql/bin and issue the command as shown it
succeeds:

$ ./mysqlshow 
+-+
|  Databases  |
+-+
| mysql   |
| test  |
+--+

What's going on here?

Peter Matulis

-
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