步骤很简单,网上教程帖子很多。
打开终端
sudo apt-get update
sudo apt-get install mysql-server 安装 MySQL 服务
sudo service mysql status 查看 MySQL 状态,是否在运行中
[email protected]:~$ sudo service mysql status ● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: e Active: active (running) since Sun 2017-12-31 02:03:26 CST; 2min 0s ago Main PID: 19742 (mysqld) Tasks: 28 (limit: 19660) CGroup: /system.slice/mysql.service └─19742 /usr/sbin/mysqld 12月 31 02:03:24 ubuntu systemd[1]: Starting MySQL Community Server... 12月 31 02:03:26 ubuntu systemd[1]: Started MySQL Community Server. lines 1-10/10 (END)...skipping... ● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2017-12-31 02:03:26 CST; 2min 0s ago Main PID: 19742 (mysqld) Tasks: 28 (limit: 19660) CGroup: /system.slice/mysql.service └─19742 /usr/sbin/mysqld 12月 31 02:03:24 ubuntu systemd[1]: Starting MySQL Community Server... 12月 31 02:03:26 ubuntu systemd[1]: Started MySQL Community Server.
测试:
连接 MySQL
操作一下
其他操作截图: