How to create aliases in terminal

I just installed mysql on my imac and in the documentation it suggests that I create an alias for the mysql server path so I don't have to keep typing out the long path.

it suggests to create an alias called 'mysql' for the path '/usr/local/mysql/bin/mysql'

I tried this by doing the command 'alias mysql=/usr/local/mysql/bin/mysql' which works while the terminal is open. But as soon as I restart the terminal, the alias is no longer there.

I tried creating a .bash_profile but am unsuccessful in this as after this file is created and I open terminal, it has some errors and the aliases don't work.

If you could please help me figure out how to get these aliases to work, I would really appreciate it.

Thanks, Chris

20" iMac, Mac OS X (10.4.6), Intel Core Duo, 2GB RAM, 500GB HD

Posted on Jun 27, 2006 11:00 PM

Reply
6 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to create aliases in terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.