Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Reading webpages...
- To install MySQL on Linux, you can follow these general steps:
- 1. Open a terminal on your Linux system.
- 2. Update the package list by running the following command:
- ```
- sudo apt update
- ```
- 3. Install the MySQL server package by running the following command:
- ```
- sudo apt install mysql-server
- ```
- 4. During the installation process, you will be prompted to set a password for the MySQL root user. Choose a strong 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 MySQL starts automatically on system boot, run the following command:
- ```
- sudo systemctl enable mysql
- ```
- 7. You can verify that MySQL is running by executing the following command:
- ```
- sudo systemctl status mysql
- ```
- 8. To secure your MySQL installation, run the following command and follow the prompts:
- ```
- sudo mysql_secure_installation
- ```
- 9. You can now access the MySQL command-line interface by running the following command:
- ```
- mysql -u root -p
- ```
- You will be prompted to enter the password you set for the MySQL root user.
- That's it! You have successfully installed MySQL on your Linux system.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement