start mysql on ubuntu code example Example 1: open mysql in ubuntu terminal mysql -u root -p Example 2: ubuntu install mysql sudo apt install mysql-server