Click here to Skip to main content
15,897,334 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I choose mysql's Source packages to install it,but when i use the command:mysql -u root -p there shows -bash: mysql: command not found,and when i use the command : ./mysql -uroot mysql mysql can startup normally, i want to say ,how can i do it?
Posted

Install the executable files in directories that are in your $PATH or modify your $PATH to include the location where you installed the mysql executables.
 
Share this answer
 
That message means that Linux shell (bash in your case) cannot find the mysql executable file (i.e. mysql command folder isn't in the PATH environment variable). You should add its folder (the one where ./mysql works) to the PATH variable (see here[^] for details).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900