install mysql workbench ubuntu 18.04 and use it code example
Example: mysql workbench in ubuntu 14.04
sudo apt-get install mysql-server
sudo apt-get install mysql-client
sudo apt-get install mysql-workbench
sudo apt-get install mysql-server
sudo apt-get install mysql-client
sudo apt-get install mysql-workbench