课程: Building an Ubuntu Server

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Hosting a database with MariaDB

Hosting a database with MariaDB - Linux教程

课程: Building an Ubuntu Server

Hosting a database with MariaDB

- [Instructor] A database stores information that can be provided to other services or programs. On our Ubuntu server, we can install MariaDB to provide a relational database for services, apps, and other projects. To install MariaDB, I'll write apt install mariadb server, and once that's done, I'll run the secure installation script to help protect my database server. I'll do that with the mysql_secure_installation tool. Now follow the steps. First I'll press enter, and then I'll choose to set a root password. I'll remove the anonymous users that come with a default database, and I'll disallow remote login for the root user. I'll accept the defaults for the rest of this script, then I'll use the database servers Command Line Interface to create a user for myself because we shouldn't use the root user for anything other than administering the server. To do that, I'll run mariadb with sudo then I'll create a user. This will…

内容