Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 8 of 8

Thread: PHP and MySQL

  1. #1
    hibachipenguins is offline Registered User
    Join Date
    Feb 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  2. #2
    Caledai is offline Registered User
    Join Date
    Mar 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  3. #3
    Captain Code's Avatar
    Captain Code is offline Moderator
    Join Date
    Aug 2001
    Location
    Ontario, Canada
    Posts
    3,120
    Thanks
    0
    Thanked 17 Times in 2 Posts
    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

  4. #4
    schwartz is offline Registered User
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  5. #5
    schwartz is offline Registered User
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  6. #6
    inboxdesign is offline Registered User
    Join Date
    Mar 2006
    Location
    New Zealand
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It think there is a preference pane that installs in to your system pref's

  7. #7
    tomdkat's Avatar
    tomdkat is offline Registered User
    Join Date
    Aug 2005
    Posts
    266
    Thanks
    27
    Thanked 1 Time in 1 Post
    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...

  8. #8
    sfstreet is offline Registered User
    Join Date
    Jan 2008
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •