Re: OS X install for Unix dummy
# [EMAIL PROTECTED] / 2003-03-29 21:52:18 -0500: I just downloaded and installed the mysql-max-4.0.12.pkg, ran cd /usr/local/mysql sudo ./bin/mysqld_safe (Enter your password) (Press CTRL+Z) (Press CTRL+D to exit the shell) bg as specified in the readme. When attempting to set the root password, I successfully ran /usr/local/mysql/bin/mysqladmin -u root password 'new-password' but it choked on: /usr/local/mysql/bin/mysqladmin -u root -h $hostname password 'new-password' with the error: hostname: Undefined variable. that's your shell speaking. IOW, unrelated to MySQL. but that is just a half of the truth. your shell tells you that $hostname doesn't exist, but probably goes on, and executes the command, with (the empty string) substituted for the variable. the result is: mysqladmin -u root -h password 'new-password' IOW, you're trying to connect to a host named password. that doesn't exist, and mysqladmin then probably tells you something like mysqladmin: connect to server at 'password' failed error: 'Unknown MySQL Server Host 'password' (1)' Check that mysqld is running on password and that the port is 3306. You can check this by doing 'telnet password 3306' That is *very* explicit, and you should be able to understand what it says. Problem is, I'm such a Unix newbie I don't know how to retrieve the hostname it is looking for. *what* is looking for a hostname? did you check what the -h switch to mysqladmin does? I tried the name of my computer and my user name but those didn't work. define didn't work. A piece of advice that might be welcome even though unasked for: don't be afraid to read what the software tells you. it usually makes perfect sense without you needing a CS degree. and don't be afraid to think. when something doesn't work perfectly from the start, don't close your eyes in panic and yell help!. using a computer is a dialogue. listen to what the computer says, and try to understand it. and finally: http://www.catb.org/~esr/faqs/smart-questions.html -- If you cc me or remove the list(s) completely I'll most likely ignore your message.see http://www.eyrie.org./~eagle/faqs/questions.html -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: OS X install for Unix dummy
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On Sat, 29 Mar 2003, Ken Tozier wrote: I just downloaded and installed the mysql-max-4.0.12.pkg, ran cd /usr/local/mysql sudo ./bin/mysqld_safe (Enter your password) (Press CTRL+Z) (Press CTRL+D to exit the shell) bg Ugh, the ReadMe has a typo here (fixed in the meanwhile) - please change the order of the last three commands: (Press CTRL+Z) bg (Press CTRL+D to exit the shell) Otherwise the MySQL process is suspended and will not run! as specified in the readme. When attempting to set the root password, I successfully ran /usr/local/mysql/bin/mysqladmin -u root password 'new-password' but it choked on: /usr/local/mysql/bin/mysqladmin -u root -h $hostname password 'new-password' with the error: hostname: Undefined variable. Problem is, I'm such a Unix newbie I don't know how to retrieve the hostname it is looking for. I tried the name of my computer and my user name but those didn't work. What is it looking for? It seems to be a common problem on Mac OS X that the hostname command does not reveal a host name. I will need to check, if we can work around this somehow... Bye, LenZ - -- For technical support contracts, visit https://order.mysql.com/?ref=mlgr __ ___ ___ __ / |/ /_ __/ __/ __ \/ / Mr. Lenz Grimmer [EMAIL PROTECTED] / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Production Engineer /_/ /_/\_, /___/\___\_\___/ Hamburg, Germany ___/ www.mysql.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE+h+xRSVDhKrJykfIRAnbyAJ4gmXZP7dz5Lp8zYt6jB4cqWsZn+wCfRDWr CT0AdF+zoomoulPCH9vYXNM= =vZpS -END PGP SIGNATURE- -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
OS X install for Unix dummy
I just downloaded and installed the mysql-max-4.0.12.pkg, ran cd /usr/local/mysql sudo ./bin/mysqld_safe (Enter your password) (Press CTRL+Z) (Press CTRL+D to exit the shell) bg as specified in the readme. When attempting to set the root password, I successfully ran /usr/local/mysql/bin/mysqladmin -u root password 'new-password' but it choked on: /usr/local/mysql/bin/mysqladmin -u root -h $hostname password 'new-password' with the error: hostname: Undefined variable. Problem is, I'm such a Unix newbie I don't know how to retrieve the hostname it is looking for. I tried the name of my computer and my user name but those didn't work. What is it looking for? Thanks Ken Tozier -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]