Setting up a database?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

OK then, follow Ambush Commander's instructions and set up a development machine on your computer. It is fast and easy to do and will basically give you all the tools you need to get ready to go live on a host.
cypher235
Forum Newbie
Posts: 15
Joined: Tue Jul 25, 2006 10:22 pm
Location: Dickson, Tennessee

Post by cypher235 »

ok the apache server on my computer is working and mysql is installed but im not sure how to configure it, and i couldn't find anything on php.net that said it was for mac os x, so if you can help me out now?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

PHP Should run on a mac without a problem. If you do have problems, you might to run over to PHPMac.com to see if they have any information for you.

As for configuring MySQL, it should have asked for some things during installation. Like a root password and ports and such. Once that is done, I would download the MySQL Administrator and MySQL Query Browser from the MySQL web site to administer your DB Server until you get phpMyAdmin set up (which comes after PHP).
cypher235
Forum Newbie
Posts: 15
Joined: Tue Jul 25, 2006 10:22 pm
Location: Dickson, Tennessee

Post by cypher235 »

ok when i installed mysql it didn't ask for anything except the license agreement and it just went through an install proccess without doing anything or asking for a password, what was supposed to happen when i installed it?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

That may mean that you are set up as user 'root' with password '' (empty). Download and install the two MySQL apps from the MySQL website and install them. When asked for a username/password, use 'root' and ''. See if you can get into your database that way.
cypher235
Forum Newbie
Posts: 15
Joined: Tue Jul 25, 2006 10:22 pm
Location: Dickson, Tennessee

Post by cypher235 »

ok so i have that installed, now i need help configuring mysql and actually installing php on my computer(since there weren't any binaries for the mac that i could see i downloaded the source code and i don't really know what to do with it)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

You are probably not going to need to configure anything for mysql. I would suggest you try connecting to it with the administrator utility.

As for installing PHP from source, you will need to know a little bit about installing software from source in a *nix environment. Unfortunately, I am not that well versed in Unix/Linux to tell you what to do. But I would guess that someone here know how to do it.

Did you happen to check out PHPMac.com?
Post Reply