How to install MySQL on Ubuntu?
You can install MySQL on Ubuntu by following these steps:
- Open the terminal and use the following command to update the list of software packages:
- Update the package list using sudo apt.
- Install the MySQL server using the following command:
- Install the mysql server using sudo apt command.
- During the installation process, you will be prompted to enter the password for the MySQL root user. Please remember this password as it will be needed for future configurations.
- After the installation is completed, you can start the MySQL service using the following command:
- Start the MySQL service using sudo.
- Check the running status of the MySQL service using the following command:
- Check the status of the MySQL service by using the command “sudo service mysql status.”
- If the MySQL service is running, the information “active (running)” will be displayed.
MySQL has been successfully installed and running on Ubuntu. You can manage the database using the MySQL command-line client or connect to the MySQL server through other tools.