Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In the environment there is as variable called PATH. Note that is must be spelled with uppercase letters when refering to the variable.
The purpose of PATH is to contain a list of directories the shell will search through when looking for an executable.
The mysql executable is located in /usr/bin, which is probably not in the user's PATH, but is in the root users PATH. If you can su to root and start mysql, but cannot start mysql as user, then you must add /usr/bin you the user's PATH.
This is how to do it from the command line:
PATH=$PATH:/usr/bin
export PATH
That will add /usr/bin to the current value of $PATH. If you reverse the order (PATH=/usr/bin:$PATH) you will erase your current PATH, and will only have /usr/bin in the PATH.
Great! This solved my problem for now, so thanks a lot and thumps up .
However when I reboot the path disappears and I have to add the Mysql path again.
How do I make it permanent part of my environment, so the path is added at boot?
I couldn't find MySql in this distro, which is an "Fedora 7 standart install" as the author described his published virtual appliance.
And yes I did make a custom install of mysql so the path I have to refer to is /usr/local/mysql/bin. I added this path to the file /etc/profile (which where refered to from the the file bashrc), and I now have mysql as a part of my environment even after reboot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.