how to start mysql server on ubuntu code example Example 1: start mysql server ubuntu sudo service mysql-server Example 2: mysql server ubuntu mysql -u root -p