Definitive Guide to Installing MySQL on Ubuntu

You will need a fresh installation of Ubuntu 22.04 on-premises where you will be monitoring hosts.

Step 1 - Install MySQL

To install MySQL on Ubuntu, follow these steps:

  1. Open a terminal window on your Ubuntu system.

  2. Update your system's package list by running the following command:

    sudo apt-get update
  3. Install MySQL by running the following command:

    sudo apt-get install mysql-server
  4. During the installation process, you will be prompted to set a root password for the MySQL database server. Choose a secure password and remember it.

  5. Once the installation is complete, start the MySQL service by running the following command:

    sudo systemctl start mysql
  6. To ensure that the MySQL service starts automatically at boot time, run the following command:

    sudo systemctl enable mysql
  7. To verify that MySQL is running, run the following command:

    sudo systemctl status mysql

You should see a message indicating that the MySQL service is active.

That's it! MySQL is now installed and running on your Ubuntu system.

  • Zabbix, Monotoring, SNMP
  • 0 Users Found This Useful
Was this answer helpful?