I have a problem installing mysql on my Mac. I followed a tutorial, but I did not succeed. So after having downloaded version 8.0.26 (which can be found in my system preferences), I went to the terminal to finalize all this. I used the following steps:
cd /usr/local/mysql
sudo ./bin/mysqld_safe
I enter my password if required, then:
Ctrl + Z
bg
Ctrl + D
I exited the terminal, then I relaunched and typed:
% echo 'export PATH = /usr/local/mysql/bin: $ PATH' >> ~ /.profile
At the next step, when I am asked to type:
% mysql -h localhost -u root -p
I have an error message saying command not found: mysql
.