how to connect and run command in mysql frm ubuntu cli code example Example: ubuntu access database from terminal mysql -u USERNAME -p