Problem scenario
The mysql command does not work from Ubuntu. You try to run a “mysql” command but you get “command not found.” What do you do to install a mysql CLI utility?
Solution
Run one of the following:
sudo apt -y install mysql-client-core-5.7
sudo apt -y install mariadb-client-core-10.1
These commands may help you too:
apt-cache search mysql-client
apt-cache search mariadb-client
sudo apt -y install mycli
sudo mysql -u root
…
Continue reading “How Do You Get the mysql Command to Work from an Ubuntu Linux Command Line?”