Aliasing MySQL Startup

I've got MySQL installed, via binary download from MySQL.com, on my Leopard setup. Much of the time I access my databases through Terminal. It's really easy to set up an alias in your bash .profile so that all you need to do is type one word to start up MySQL, then type your password. Here's how I've set up my alias:

   view plainprintabout
 alias startmysql=""mysql -u name_of_user -p""

Note that ""name_of_user"" should be replaced with the name of the account that you use to access MySQL. You shouldn't be using root, in any case, even on your personal laptop.

TweetBacks
Comments
Comments are not allowed for this entry.
BlogCFC was created by Raymond Camden. This blog is running version 5.9.5.003. Contact Blog Owner