image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old April 14th, 2008, 07:48 PM
Matsaki's Avatar
Mac Addict
 
Join Date: Nov 2001
Location: Cyprus
Posts: 404
Thanks: 0
Thanked 0 Times in 0 Posts
Matsaki is on a distinguished road
MySQL will not start

I just bought a new Macbook Pro 2.4 and starting fixing it with only fresh installs. I installed the OS X 10.5 (x86_64) pak. It was running fine until now.

The start/stop in the pref.pane don't work and if I do a "mysql start" in the terminal I get:

Quote:
MacBookPro:~ matsaki$ mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I tried to reinstall but it did not help. What's bugging??? And what to do?

Thank's!
__________________
G4 Quicksilver 867Mhz / 896RAM / 2 x 120Gb HD. Mac OS X 10.4.11
G4 alubook 1.5GHz (BT 2) / 2Gb RAM / 80Gb HD. Mac OS X Tiger 10.4.11

Macbook Pro 2.4GHz / 3Gb RAM / 200Gb HD / Mac OS X Leopard 10.5.2
Reply With Quote
  #2  
Old April 14th, 2008, 11:32 PM
macworks's Avatar
Christopher Raymond
 
Join Date: Mar 2006
Location: Minneapolis, MN
Posts: 444
Thanks: 0
Thanked 0 Times in 0 Posts
macworks is on a distinguished road
Using the terminal, create a filed called "my.cnf" in /etc and put the following inside of it, then start MySQL ...

[mysqld]
socket=/tmp/mysql.sock
__________________
Christopher Raymond
ACTC

Owner/Operator: MacWorks
Reply With Quote
  #3  
Old April 15th, 2008, 05:52 AM
Registered User
 
Join Date: Apr 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
tenjin is on a distinguished road
Hi,

There are a few issues with MySQL on Leopard.

Follow these two links. If you do what they suggest you will get a working MySQL installation with MySQL Preference pane:

http://angry-fly.com/index.cfm/2007/...SQL-on-Leopard

http://www.angry-fly.com/index.cfm/2...ork-In-Leopard

NOTE for the second link: When you change the permissions on the created file in the instructions using:

sudo chown root:wheel mysql.server

change "root" to whatever your current admin username is. for example

sudo chown tferguson:wheel mysql.server


Cheers

D.
Reply With Quote
  #4  
Old April 15th, 2008, 06:07 AM
Matsaki's Avatar
Mac Addict
 
Join Date: Nov 2001
Location: Cyprus
Posts: 404
Thanks: 0
Thanked 0 Times in 0 Posts
Matsaki is on a distinguished road
Det funkar inge bra för mig i länk 2 där?

Quote:
MacBookPro:support-files matsaki$ sudo chown matsaki:wheel mysql.server
MacBookPro:support-files matsaki$ mv mysql.server mysql.server.real
override rwxr-xr-x root/wheel for mysql.server.real? (y/n [n]) y
mv: rename mysql.server to mysql.server.real: Permission denied
MacBookPro:support-files matsaki$
__________________
G4 Quicksilver 867Mhz / 896RAM / 2 x 120Gb HD. Mac OS X 10.4.11
G4 alubook 1.5GHz (BT 2) / 2Gb RAM / 80Gb HD. Mac OS X Tiger 10.4.11

Macbook Pro 2.4GHz / 3Gb RAM / 200Gb HD / Mac OS X Leopard 10.5.2
Reply With Quote
  #5  
Old April 15th, 2008, 06:53 AM
Matsaki's Avatar
Mac Addict
 
Join Date: Nov 2001
Location: Cyprus
Posts: 404
Thanks: 0
Thanked 0 Times in 0 Posts
Matsaki is on a distinguished road
Got it to work now, The only problem is that MySQL don't start up when starting the computer. I hace installes tha startup pkg and also checked the "Aytomatically start up..) in the pref pane.
__________________
G4 Quicksilver 867Mhz / 896RAM / 2 x 120Gb HD. Mac OS X 10.4.11
G4 alubook 1.5GHz (BT 2) / 2Gb RAM / 80Gb HD. Mac OS X Tiger 10.4.11

Macbook Pro 2.4GHz / 3Gb RAM / 200Gb HD / Mac OS X Leopard 10.5.2
Reply With Quote
Reply

Thread Tools

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

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


All times are GMT -5. The time now is 06:47 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.