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]