image
image

|


Go Back   macosx.com > Mac Help Forums > Mac OS X Server

Reply
 
Thread Tools
  #1  
Old February 18th, 2007, 02:34 PM
Registered User
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
hibachipenguins is on a distinguished road
PHP and MySQL

I am running a G4 tower with OS X Server 10.4.8 with stock apache and php.

I recently installed mysql 5.0 so I could run bblog on a few of my websites. When I run the config page for bblog (which is php so I know that is working at least) I put in the mysql info and try to continue but it says that it is unable to connect to the database. I know the database is running and I know the info supplied is correct.

I read somewhere that by default OS X php does not know where to correctly find MySQL or something of the likes, however now that I need to know it I can't find the article on how to fix it or exactly where the problem lies.

Anyone have any ideas, I've been stressing out for 3 hours now trying to get it working.
Reply With Quote
  #2  
Old March 26th, 2007, 10:59 PM
Registered User
 
Join Date: Mar 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Caledai is on a distinguished road
I have a similar is issue occurring on one of my machines - a panther server on which I upgraded MySQL.

One of the things I check was to check what directory the socket was being saved to.

You can use MySQL Administrator to check this - its part of the MySQL GUI Tools, and edit the php.ini file to make sure the socket is pointing to the same directory.

I think there needed to be some permissions set as well, but because it didn't resolve the issue I was having I didn't attempt to remember it - but that might give you enough info to find the answer for yourself.
Reply With Quote
  #3  
Old April 7th, 2007, 08:48 AM
Captain Code's Avatar
Moderator
 
Join Date: Aug 2001
Location: Ontario, Canada
Posts: 3,102
Thanks: 0
Thanked 0 Times in 0 Posts
Captain Code will become famous soon enough
Try using 127.0.0.1 instead of localhost. I had problems with localhost but 127.0.0.1 worked. They should be the same thing but it wasn't.
__________________
MacBook Pro 2.16GHz Core2Duo 3GB RAM, G4 1.4GHz OSX Tiger 1.25GB RAM, Dual 2GHz G5 OSX Tiger 2GB RAM (freakin shweet)
Athlon 64 Windoze XP for school work (programming) 1GB RAM
dferns@macosx.com
Reply With Quote
  #4  
Old April 7th, 2007, 02:29 PM
Registered User
 
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
schwartz is on a distinguished road
I'm new to Mac OS X Server (started last night). I found /usr/bin/mysql from the terminal window so I know Apple included mysql but I'm not sure where in the admin tool to start/configure it. Can someone giver me a pointer?

thanks,
Bill
Reply With Quote
  #5  
Old April 7th, 2007, 04:56 PM
Registered User
 
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
schwartz is on a distinguished road
Found the MySQL Manager so answered part of my question. I don't however see in the manager how to get MySQL to start automatically on reboot. Is there an option for this?

thanks,
Bill
Reply With Quote
  #6  
Old May 16th, 2007, 03:38 PM
Mac Web Development
 
Join Date: Mar 2006
Location: New Zealand
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
inboxdesign is on a distinguished road
It think there is a preference pane that installs in to your system pref's
Reply With Quote
  #7  
Old September 26th, 2007, 04:42 PM
tomdkat's Avatar
Registered User
 
Join Date: Aug 2005
Posts: 197
Thanks: 6
Thanked 0 Times in 0 Posts
tomdkat is on a distinguished road
Quote:
Originally Posted by Caledai View Post
You can use MySQL Administrator to check this - its part of the MySQL GUI Tools
Does this come with the Mac OS X distribution from the official MySQL website? I might be installing MySQL on a OS X Server 10.3 machine, which will be my first MySQL on OS X install.

Thanks!

Peace...
Reply With Quote
  #8  
Old January 7th, 2008, 09:16 PM
www.FreelancerNetwork.Org
 
Join Date: Jan 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
sfstreet is on a distinguished road
Try mysql Admin. You can bring it up using mySQL admin. There is a piece of add-in software that you need to install after installing mySQL. It came together with it. It automatically starts mySQL each time you reboot your MAC,, else, you will have to start it from the command line or using mySQL Admin.
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 03:24 AM.


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.