Results 1 to 3 of 3

Thread: PHP mysql

  1. #1
    PHP mysql
    what settings to I need for php to work on my ibook. As if i write a php file and use the mysql_connect( " ?", "?","?") statement, what should these values be.

    What else needs to be done/ configure in order to host a site with database connectivity, and help wold be most appreciated as I haven't a clue really and am new to using mac's


  2. #2

    Murlyn's Avatar
    Member Since
    Jun 11, 2003
    Mount Vernon, WA
    MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
    I believe mysql default is root with no password, so you would need to update the user pass to something a bit more secure after you have everything setup.

    PHP should already be setup, you just need to start web services by going to Apple -> System Preferences -> Sharing -> and start Personal Web Sharing

  3. #3

    Member Since
    Oct 01, 2004
    PHP has to be enabled by editing the file at /etc/httpd/httpd.conf, you need to uncomment out the lines in regard to AddModule and LoadModule for php, just search PHP and you'll find it.

    OS X does not come with MySQL installed, you'll have to download it.

    The connect command will looks like: mysql_connect( "localhost", "username","password")

    username will be root unless you want to create a new one, that is default, your password defaults to nothing so you'll probably want to change it to something.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PHP and MySQL
    By conor in forum OS X - Operating System
    Replies: 5
    Last Post: 06-11-2009, 08:44 PM
  2. A little help with PHP/MySQL
    By blinkdude182 in forum Web Design and Hosting
    Replies: 4
    Last Post: 02-08-2009, 02:52 AM
  3. All in 1; php/apache/mysql ?
    By gab1982 in forum Running Windows (or anything else) on your Mac
    Replies: 5
    Last Post: 08-31-2004, 04:41 PM
  4. PHP+MySQL Help.
    By design2 in forum Web Design and Hosting
    Replies: 3
    Last Post: 08-07-2004, 07:22 PM
  5. Apache + PHP + MySQL
    By Emrys in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 11-14-2003, 02:30 AM

Posting Permissions

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