![]() You might be aware that our terminal using something called dotfiles to load configuration on terminal initialisation. So we have to persist concat in our path. Now we need to have our mysql binaries exported every-time we use terminal. And if we reopen terminal we won't have access to our command again because last when we exported, it was stored in primary memory which is volatile. So upon close we lose the new assignment. Think of one terminal window as one instance of program and maybe something like $PATH is class variable ( maybe ). This way after executing it all the commands inside /usr/local/mysql/bin are available to us. So export a variable PATH with value old $PATH concat with new bin i.e. If you break it down, export is self explanatory. We do it by following command, export PATH=$PATH:/usr/local/mysql/bin Turns out MySql doesn't do it upon install so we manually have to do it. Now usually programs upon installation takes care of updating PATH & telling your terminal that hey i can be all commands inside my bin folder. This different folder locations are stored inside one Global variable i.e. bin folder has lots of executable files inside it. This are usually binaries look how /bin folder is usually referenced. Think of it as a global variable where terminal iterates over to look up for any command. ![]() ![]() This places are stored in your $PATH variable. So there are few places where terminal looks for commands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |