New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

PHP mysql


Post Reply New Thread Subscribe

 
Thread Tools
richardmojo
Guest
 
Posts: n/a

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

thanks
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
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
QUOTE Thanks
mynameis

 
Member Since: Sep 30, 2004
Posts: 3,378
mynameis is just really nicemynameis is just really nicemynameis is just really nicemynameis is just really nice

mynameis is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Web page builder | What ftp client do you use? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Installing mySQl on Mac OS X sealey Web Design and Hosting 7 06-02-2005 10:45 PM
Setting up PHP and PHP Nuke EvoMac Web Design and Hosting 2 02-18-2005 12:38 PM
mac os update 10.3.7 and PHP MYSQL lomokev Web Design and Hosting 2 01-27-2005 03:44 PM
Removing MySQL from Panther 3.6 vawolf OS X - Operating System 0 12-07-2004 09:25 PM
Apache + PHP + MySQL Emrys OS X - Development and Darwin 2 11-14-2003 01:30 AM

All times are GMT -4. The time now is 07:12 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?