Here is why your current code is not working: export PATH=${PATH}/usr/local/mysql/bin/ You forgot the colon and the trailing "/" is unnecessary. export PATH=${PATH}:/usr/local/mysql/bin is the correct code.