Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: MySQL

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Regina, Sk


    Hi, I have just installed mysql from a binary distribution. I was wondering if anyone out there knows how to configure it so that all I need to type is "mysql" on the command line to access the mysql shell. As of now the only way I can access the shell is to cd into the dir that it is located and run "./mysql". Thanks for any input.

  2. #2
    Linux Guru
    Join Date
    May 2004
    One way would be to add the directory of the mysql executable to your path by editing your /home/username/.bash_profile Then you should be able to execute it from anywhere. Working directory would be a different question.

    The "." in ".bash_profile" shows that it is a hidden file that you may not see in your file manager or if you ls the directory. To see the hidden files, at the command line use ls -a and in the Gnome, select edit->preferences->views and select "Show hidden and backup files" In KDE and others, click around.
    //got nothin'
    ///this use to look better

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts