Thread: PHP mysql
05-09-2005, 04:37 PM #1richardmojoGuestPHP 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
05-09-2005, 06:15 PM #2
- 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---> Join the Mac-Forums Folding team: use 37954 as your team number.
View Mac-Forums Folding team statistics (More Info)
Don't forget to use the User Reputation System
05-09-2005, 10:05 PM #3
- Member Since
- Sep 30, 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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By conor in forum OS X - Operating SystemReplies: 5Last Post: 06-11-2009, 07:44 PM
By blinkdude182 in forum Web Design and HostingReplies: 4Last Post: 02-08-2009, 01:52 AM
By gab1982 in forum Running Windows (or anything else) on your MacReplies: 5Last Post: 08-31-2004, 03:41 PM
By design2 in forum Web Design and HostingReplies: 3Last Post: 08-07-2004, 06:22 PM
By Emrys in forum OS X - Development and DarwinReplies: 2Last Post: 11-14-2003, 01:30 AM