mysqld install
时间: 2023-09-24 22:05:37 浏览: 204
CentOS Install Zabbix 3.0
To install MySQL on a Linux system, you can follow the below steps:
1. Update the package index:
```
sudo apt update
```
2. Install the MySQL server package:
```
sudo apt install mysql-server
```
3. Once the installation is complete, you can start the MySQL service using the following command:
```
sudo systemctl start mysql
```
4. To enable MySQL to start automatically on system boot, run the following command:
```
sudo systemctl enable mysql
```
5. You can then check the status of the MySQL service using the following command:
```
sudo systemctl status mysql
```
Once the installation is complete, you can connect to MySQL using the command line client or a MySQL client GUI tool.
阅读全文