Skip to main content
 Web开发网 » 数据库教程

如何在Ubuntu 14.04 LTS上安装MariaDB

2021年08月11日5680百度已收录

  要安装MariaDB,我们首先要设置MariaDB仓库。

  设置 MariaDB 仓库

如何在Ubuntu 14.04 LTS上安装MariaDB  何在 MariaDB 安装 Ubuntu 14.04 第1张

安装 MariaDB :

$ sudo apt-get update

$ sudo apt-get install mariadb-server

在安装中,你会被要求设置MariaDB的root密码。

如何在Ubuntu 14.04 LTS上安装MariaDB  何在 MariaDB 安装 Ubuntu 14.04 第2张

从命令行连接到MariaDB :

linuxtechi@mail:~$ mysql -uroot -p

Enter password:

 Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 40

Server version: 10.0.14-MariaDB-1~trusty-log mariadb.org binary distribution

Copyright (c) 2000, 2014, Oracle, SkySQL Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>

MariaDB 服务

$ sudo /etc/init.d/mysql stop$ sudo /etc/init.d/mysql start

评论列表暂无评论
发表评论
微信