Instaaling drupal on my mac

northkites - September 1, 2007 - 10:45

I cant seem to install drupal on my mac well i can but ! i cant creat a user data base ! iv tryed useing mapa to do it i creat a data base in mapa but then come to put my detail in to the drupal use name and password section it say invaild ????? and tips ? iv try installing entropy into my mac to but it fails im running 10.4.10 ! Anyone help ? just wanna set it up as a testing station ! oh and im pretty new to drupal

MAMP to the Rescue, BURBBRRRRR...

mpare - September 1, 2007 - 16:46

MAMP is an amazing little app to speed your development and get you straight to building your site and not your server. MAMP stands for: Macintosh, Apache, Mysql and PHP. Just install the app, and by default you can create folders in /applications/mamp/htdocs/your_site. After starting the mamp server just navigate to http://localhost/your_site. You will still need to create your database initially for drupal. So mamp has my_php_admin already installed so you can do it that way, or I prefer to use terminal. If you are going to use terminal you will need to read the mamp manual to manually configure your .profile file so that mac knows to remap your mysql terminal command to mamp's mysql and not osx's mysql.

alias mysql=/Applications/MAMP/Library/bin/mysql
alias mysqladmin=/Applications/MAMP/Library/bin/mysqladmin
alias mysqldump=/Applications/MAMP/Library/bin/mysqldump

I just added those lines to my ~/.profile file, you could alternatively do it for the entire system if you like. Note, these are only if you want to use the terminal to control mysql.

If your using php myadmin you can find instructions on how to create your database. By default mamp already has a user that you could use, though not often recommended but usually fine for local host developement. User: root, Pass: root. So after you create your database go to http://localhost/your_site, the drupal install page should appear, type in the database name you just created and username root and password root, unless you created additional users for mysql, and your done. Hit next and your drupal install is complete.

Here are some videos that demonstrate the process. http://www.lullabot.com/node/158/play and http://www.lullabot.com/node/247/play. I kinda think the second video, http://www.lullabot.com/node/247/play, is more of what your looking for.

Also here is a cheat sheet I made and used when first using mysql, http://paretech.com/notes/node/2.

Enjoy and happy drupalling,
-mpare
--
Pare Technologies
Drupal Consulting, Themeing, and Module Development
806.781.8324 | 806.733.3025
www.paretech.com

Figure Something Out? Document Your Success!

Change root password?

kriskd - January 14, 2008 - 00:30

mpare --

Thanks for all the useful notes. I successfully got MAMP installed and running, but I can't figure out how to change the MySql password from root to something else. The FAQ states this:

/Applications/MAMP/bin/mysql4/bin/mysqladmin -u root -p password

But that path is wrong. There is no mysql4 folder under bin. Does anyone know what the correct path is?

I also checked out your cheat sheet. I assume this command should do it:

mysqladmin -u <user_name> password <desired_password>

However, I get a command not found when I run that in the terminal.

I'm pretty new to the Apple environment. Hopefully I'm just missing something obvious.

My Answer!

kriskd - January 14, 2008 - 01:02

I just found my answer here (reply #19):

http://forums.macrumors.com/showthread.php?t=246256

I believe for MAMP the root password is set to "root" by default,

.. which you should change (using phpMyAdmin > Privileges > change password for root@localhost), although this may mean that MAMP can no longer connect to it, without altering some conf files

These config files are:
/Applications/MAMP/bin/phpMyAdmin/config.inc.php @line 86
/Applications/MAMP/bin/mamp/index.php @line 15

 
 

Drupal is a registered trademark of Dries Buytaert.