PDA

View Full Version : MAMP and PHP-Nuke




DesertFox
Sep 18, 2005, 12:08 PM
Hello everybody,

I am trying to accomplish this step in the PHP-Nuke setup:

http://phpnuke.org/modules.php?name=PHP-Nuke_HOWTO&page=database-creation.html

Each time I open the terminal and type in the command ./mysqladmin -u root -p create database

It just tells me that there is no such file or directory.

I have done a default install of MAMP and my PHP-Nuke files are in the htdocs folder.

Any help is greatly appreciated.



iMeowbot
Sep 18, 2005, 05:30 PM
Okay, that partiucular error message hints that your shell isn't finding the mysqladmin command.

Can you do
cd /Applications/MAMP/bin/mysql4/bin
ls

... and make sure that you're in the right place and mysqladmin is present?

(you could instead add /Applications/MAMP/bin/mysql4/bin to your $PATH for convenience)

DesertFox
Sep 20, 2005, 10:30 PM
Ok,

Got the thing working, thanks...

Back to this step: http://phpnuke.org/modules.php?name=PHP-Nuke_HOWTO&page=database-creation.html

But how would I actually "populate" the nuke.sql database? Do I have to move any files anywhere in order to accomplish this? Does the nuke.sql have to be in any specific folder?

Thanks for helping out a n00b so far!

iMeowbot
Sep 27, 2005, 09:22 PM
Sorry, missed this one. If you haven't found the answer already, you can use that command line in the instructions as is (but it will probably be ./mysql and so on). The nuke.sql file can be anywhere you want it to be. Instead of the <nuke.php in the example, you can use < /Users/iMeowbot/junk/nuke.php (or whatever the full path the the actual file is).