Installing MySQL 5 Server on Ubuntu is a quick and easy process. It almost feels like it should be more difficult.
在Ubuntu上安装MySQL 5 Server是一个快速简便的过程。 几乎感觉应该更困难了。
Open a terminal window, and use the following command:
打开一个终端窗口,并使用以下命令:
sudo apt-get install mysql-server
须藤apt-get install mysql-server
If you are running PHP you will also need to install the php module for mysql 5:
如果您正在运行PHP,则还需要安装mysql 5的php模块:
sudo apt-get install php5-mysql
须藤apt-get install php5-mysql
To create a new database, use the mysqladmin command:
要创建新数据库,请使用mysqladmin命令:
mysqladmin create <databasename>
mysqladmin创建<数据库名称>
See, really easy!
看,真的很简单!
翻译自: https://www.howtogeek.com/howto/ubuntu/install-mysql-server-5-on-ubuntu/