Linux下安装MySQL
时间: 2023-05-22 18:07:06 浏览: 122
Linux下MySQL安装
Sure, here is how to install MySQL on Linux:
1. Open a terminal and update the package list:
sudo apt-get update
2. Install the MySQL server:
sudo apt-get install mysql-server
3. After installation, start the MySQL service:
sudo systemctl start mysql
4. Check if the service is running:
sudo systemctl status mysql
5. (Optional) If you want to enable MySQL to start automatically upon boot:
sudo systemctl enable mysql
6. (Optional) If you want to secure your MySQL installation:
sudo mysql_secure_installation
Hope this helps!
阅读全文