Directly input mysql-uroot-p and return the following result:-bash: mysql: commandnotfound tried a method and it seems that the environment variable has been successfully configured. the code is as follows: {code ...} but in this case, you have to repeat it again after exiting the terminal. After that, I found various types on the internet...
-Bash: mysql: command not found
PATH="$PATH":/Applications/XAMPP/xamppfiles/bin
But in this case, you have to repeat it again after exiting the terminal. After finding various methods on the Internet, I had a poor mind and finally failed. it seems that I have modified the root-level stuff. now there is an error when I open it on terminal. As follows:
Last login: Sun Sep 25 23:35:04 on ttys000-bash: PATH=${$PATH}:/Applications/XAMPP/xamppfiles/bin: bad substitution
It's hard to find a solution.
Reply content:
-Bash: mysql: command not found
PATH="$PATH":/Applications/XAMPP/xamppfiles/bin
But in this case, you have to repeat it again after exiting the terminal. After finding various methods on the Internet, I had a poor mind and finally failed. it seems that I have modified the root-level stuff. now there is an error when I open it on terminal. As follows:
Last login: Sun Sep 25 23:35:04 on ttys000-bash: PATH=${$PATH}:/Applications/XAMPP/xamppfiles/bin: bad substitution
It's hard to find a solution.
Centos party, mac OS should be similar, never used.
Add mysql environment variables/etc/profileTry
Thensource/etc/profile