cannot run mysql

LogicMan

Registered
I cannot run mysql but have to type the whole pathname to the mysql executable file. How can I just type in mysql whcih takes me to mysql
 
open terminal

type "ls -al " (no quotes)
do you have a .bash_profile file ?
if so then open in vi with the command
vi .bash_profile
add the following to your path
export PATH=/usr/local/mysql/bin:$PATH
save the file using :wq
now you must reload the .bash_profile
type ". .bash_profile" (no quotes)
now type mysql
everything should work
 
Back
Top