Re: Problem running MySQL on MacOS X.3

2004-05-11 Thread Brent Baisley
If you don't have a process mysqld running, then mysql isn't running. 
You may try starting up mysql directly (just type mysqld), rather than 
through the startup script or through mysqld_safe, since they suppress 
the error messages. You should then see some error message that may 
help determine why mysql isn't running.
Also, to access mysql, you should provide user name and password. You 
won't be able to access it if you don't, unless it's configured that 
way.
mysql -u username -p

Keep in mind that the username and password are not related to the 
username and password in the OS. Many people trying to run it on a Mac 
miss this point.

You may also try running the repair disk permissions from Apple's Disk 
Utility and then installing MySQL again. In the past there had been 
privilege issues on certain folders that prevented MySQL from running 
or installing correctly.

That said, I've been running MySQL on a Mac for quite some time without 
a problem. So if will run. There are some known issues with running 4.1 
on a Mac.

On May 10, 2004, at 5:21 PM, Tim Jarman wrote:

I have an iBook G4 running MacOS X.3 on Darwin 7.0. I downloaded and 
ran the
binary installer (mysql-standard-4.0.18.pkg and it appeared to work 
fine; I
have /usr/local/mysql and so on as per the docs. I also installed
MySQLStartupItem.

However, I don't actually appear to have a functional installation. If 
I do:

/usr/local/mysql/bin/mysql
or even

sudo /usr/local/mysql/bin/mysql
I get:

ERROR 2002: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (61)
although /tmp/mysql.sock does exist, which seems to indicate the 
server is
running. But then again ps -a -x doesn't seem to show it, so maybe it 
isn't;
if I do ps -A |fgrep mysql on my Linux box, where MySQL is running 
happily,
I get a hit for mysqld_safe plus ten others for mysqld.

I tried starting the server manually as suggested in the docs:

sudo /Library/StartupItems/MySQL/MySQL start
Starting MySQL database server
but when I try running mysql I get error 2002 as before.

I found mention of this problem on FAQTS and in the MySQL mailing lists
archive, the latter of which suggested this email address. Any clues 
would be
most welcome! Please cc any replies to me as I am not currently 
subscribed to
any of the MySQL lists.

Thanks in advance,

Tim Jarman

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]


--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search  Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Problem running MySQL on MacOS X.3

2004-05-11 Thread Gabriel Ricard
Did you configure MySQL and run the 
/usr/local/mysql/scripts/mysql_install_db to initialize your data 
directory?

- Gabriel

On May 10, 2004, at 5:21 PM, Tim Jarman wrote:

I have an iBook G4 running MacOS X.3 on Darwin 7.0. I downloaded and 
ran the
binary installer (mysql-standard-4.0.18.pkg and it appeared to work 
fine; I
have /usr/local/mysql and so on as per the docs. I also installed
MySQLStartupItem.

However, I don't actually appear to have a functional installation. If 
I do:

/usr/local/mysql/bin/mysql
or even

sudo /usr/local/mysql/bin/mysql
I get:

ERROR 2002: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (61)
although /tmp/mysql.sock does exist, which seems to indicate the 
server is
running. But then again ps -a -x doesn't seem to show it, so maybe it 
isn't;
if I do ps -A |fgrep mysql on my Linux box, where MySQL is running 
happily,
I get a hit for mysqld_safe plus ten others for mysqld.

I tried starting the server manually as suggested in the docs:

sudo /Library/StartupItems/MySQL/MySQL start
Starting MySQL database server
but when I try running mysql I get error 2002 as before.

I found mention of this problem on FAQTS and in the MySQL mailing lists
archive, the latter of which suggested this email address. Any clues 
would be
most welcome! Please cc any replies to me as I am not currently 
subscribed to
any of the MySQL lists.

Thanks in advance,

Tim Jarman

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Problem running MySQL on MacOS X.3

2004-05-11 Thread Rich Allen

ps should show you something like the following:

Jupiter:~/desktop hcir$ ps uax | grep mysql
root  291   0.0  0.118644   1072  ??  S 3May04   0:00.06 sh  
./bin/safe_mysqld --user=mysql
mysql 338   0.0  2.551720  19872  ??  S 3May04  10:17.86  
/usr/local/mysql-standard-4.1.0-alpha-apple-darwin6.4-powerpc/bin/ 
mysqld
hcir20399   0.0  0.018172344 std  S+   10:52AM   0:00.01  
grep mysql

if you dont see this i would check the error log after you try to start  
the server with something like:

#/usr/local/mysql/bin/mysqld_safe -uuser 

- hcir

On May 11, 2004, at 10:29 AM, Gabriel Ricard wrote:

Did you configure MySQL and run the  
/usr/local/mysql/scripts/mysql_install_db to initialize your data  
directory?

- Gabriel

On May 10, 2004, at 5:21 PM, Tim Jarman wrote:

I have an iBook G4 running MacOS X.3 on Darwin 7.0. I downloaded and  
ran the
binary installer (mysql-standard-4.0.18.pkg and it appeared to work  
fine; I
have /usr/local/mysql and so on as per the docs. I also installed
MySQLStartupItem.

However, I don't actually appear to have a functional installation.  
If I do:

/usr/local/mysql/bin/mysql
or even

sudo /usr/local/mysql/bin/mysql
I get:

ERROR 2002: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (61)
although /tmp/mysql.sock does exist, which seems to indicate the  
server is
running. But then again ps -a -x doesn't seem to show it, so maybe  
it isn't;
if I do ps -A |fgrep mysql on my Linux box, where MySQL is running  
happily,
I get a hit for mysqld_safe plus ten others for mysqld.

I tried starting the server manually as suggested in the docs:

sudo /Library/StartupItems/MySQL/MySQL start
Starting MySQL database server
but when I try running mysql I get error 2002 as before.

I found mention of this problem on FAQTS and in the MySQL mailing  
lists
archive, the latter of which suggested this email address. Any clues  
would be
most welcome! Please cc any replies to me as I am not currently  
subscribed to
any of the MySQL lists.

Thanks in advance,

Tim Jarman



- hcir

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Problem running MySQL on MacOS X.3

2004-05-10 Thread Sasha Pachev
Tim Jarman wrote:
I have an iBook G4 running MacOS X.3 on Darwin 7.0. I downloaded and ran the 
binary installer (mysql-standard-4.0.18.pkg and it appeared to work fine; I 
have /usr/local/mysql and so on as per the docs. I also installed 
MySQLStartupItem.

However, I don't actually appear to have a functional installation. If I do:


/usr/local/mysql/bin/mysql


or even


sudo /usr/local/mysql/bin/mysql


I get:

ERROR 2002: Can't connect to local MySQL server through socket 
'/tmp/mysql.sock' (61)

although /tmp/mysql.sock does exist, which seems to indicate the server is 
running. But then again ps -a -x doesn't seem to show it, so maybe it isn't; 
if I do ps -A |fgrep mysql on my Linux box, where MySQL is running happily, 
I get a hit for mysqld_safe plus ten others for mysqld.

I tried starting the server manually as suggested in the docs:


sudo /Library/StartupItems/MySQL/MySQL start
Starting MySQL database server


but when I try running mysql I get error 2002 as before.

I found mention of this problem on FAQTS and in the MySQL mailing lists 
archive, the latter of which suggested this email address. Any clues would be 
most welcome! Please cc any replies to me as I am not currently subscribed to 
any of the MySQL lists.
Tim:

perror 61 will reveal some details about why exactly the connection on 
/tmp/mysql.sock cannot happen. If that does not make it obvious ( and it is a 
good possibility that it would not), try mysql -h 127.0.0.1 instead to bypass 
the Unix socket and use TCP/IP.

--
Sasha Pachev
Create online surveys at http://www.surveyz.com/
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]