Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DesertFox

macrumors member
Original poster
Nov 25, 2004
72
0
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

macrumors G3
Aug 30, 2003
8,634
0
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)
 

iMeowbot

macrumors G3
Aug 30, 2003
8,634
0
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).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.