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

Stevp1

macrumors regular
Original poster
1st thing, I'm a newbie as far as unix/mysql etc. I'm working on developing a CMS solution for my company. I've got mysql installed and running, and I use PHPmyadmin for access. I'm trying to get more familiar with the terminal, so I'm trying commands from there. When i try a command such as "mysqladmin -u dba_user -p create database" or basically try to call any mysql command, I get "command not found" errors. Even when I use sudo. I'm in the correct directory, and I can see the command I need in the ls results.

any suggestions?
 
this is just a shot in the dark (and I'm sure its not a good one at that) but one thing about unix is that you must use the exact case of a command for it to work. Hope that helps.

-db
 
Most sane Unix users do not have the current directory in their PATH. Try ./ in front of the command. If that works add the directory (fully qualified) to your PATH variable (.profile or equivalent file).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.