install MariaDB 10.2 on Ubuntu 18

Here are the commands to run to install MariaDB 10.2 from the MariaDB repository on your Ubuntu system:

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository ‘deb [arch=amd64,arm64,ppc64el] http://mirrors.neusoft.edu.cn/mariadb/repo/10.2/ubuntu bionic main‘

Once the key is imported and the repository added you can install MariaDB 10.2 from the MariaDB repository with:

sudo apt update
sudo apt install mariadb-server

Some times we need to stop or start MariaDB service. Use the following commands to stop, start, check status and restart MariaDB servic.

$ sudo systemctl stop mysql.service      # To Stop MariaDB service
$ sudo systemctl start mysql.service     # To Start MariaDB service
$ sudo systemctl status mysql.service    # To Check MariaDB service status
$ sudo systemctl restart mysql.service   # To Stop then Start MariaDB service 

try remotely connect to the server

it‘s very trick,

firstly you have to comments bind-address in file /etc/mysql/my.cnf in case you are encountering 10061 error refer to this page

#bind-address = <some ip-address>
and then reset root user of mariadb‘s password  refer to this
+-----------+------+-------------------------------------------+
| host      | user | password                                  |
+-----------+------+-------------------------------------------+
| localhost | root | *C61A1C944BC7AXXXXXXXXXXXXXX4B81A462D9CB3 |
| 127.0.0.1 | root | *C61A1C944BC7A3XXXXXXXXXXXXX4B81A462D9CB3 |
| ::1       | root | *C61A1C944BC7A3XXXXXXXXXXXXX4B81A462D9CB3 |
| %         | root | *81F5E21E35407DXXXXXXXXXXXXXEBFB6AF209E1B |   wrong password made me facing 1045 error
+-----------+------+-------------------------------------------+
restar the db service
service mysql restart

then connect to the db via Navicat or mariadb CLI command

mysql -h xxx.xx.xx -u root -p 

reference documents

https://askubuntu.com/questions/1009175/mariadb-10-0-33-configuring-mariadb-for-remote-client-access

https://www.jb51.net/article/26505.htm

https://mariadb.com/kb/en/library/configuring-mariadb-for-remote-client-access/

https://downloads.mariadb.org/mariadb/repositories/#mirror=neusoft&distro=Ubuntu&distro_release=bionic--ubuntu_bionic&version=10.2

https://tecadmin.net/install-mariadb-10-on-ubuntu/

原文地址:https://www.cnblogs.com/guoapeng/p/9823844.html

时间: 2024-11-05 12:26:06

install MariaDB 10.2 on Ubuntu 18的相关文章

在Ubuntu上安装sublime 3 ,how to install sublime 3 text on Ubuntu 18.04

apt Install the GPG key: wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - Ensure apt is set up to work with https sources: sudo apt-get install apt-transport-https Select the channel to use: Stable echo "deb https://

How To Install Docker On Ubuntu 18.04

Docker is an increasingly popular software package that creates a container for application development. Developing in Docker speeds up applications, as it shares the kernel and other resources, instead of requiring dedicated resources. There are two

Install MariaDB on Ubuntu server

本文所描述的安装方法实用于一下软件环境 ,不能保证使用于其他版本,请参考自己实际情况调整安装方法及参数. 操作系统版本:Ubuntu Server 14.04 LTS 64bit 欲安装MariaDB版本:MariaDB 5.5.39 准备工作 确定安装版本以及安装文件 https://downloads.mariadb.org/ 用APT方式安装MariaDB 配置库并导入相应的key sudo apt-get install software-properties-common sudo a

Install latest Eclipse IDE in Ubuntu 14.04, 13.10

Eclipse Kepler 4.3.2 SR2 is the most recent release from the Eclipse top-level project. It contains what you need to build applications based on Eclipse technology, including integrated development environments IDE, and rich client applications using

Install Cocos2d-x v3.3 on Ubuntu 14.04 &amp; Ubuntu 14.10(转)

Install Cocos2d-x v3.3 on Ubuntu 14.04 & Ubuntu 14.10 1 get the source code sudo apt-get install git git clone https://github.com/cocos2d/cocos2d-x.git or you can download at   http://cn.cocos2d-x.org/download/ 2 init environment cd cocos2d-x/build .

Install Openjdk11 to Ubuntu 18.04 LTS

??Ubuntu 18.04 LTS系统上通过sudo apt install openjdk-11-*命令安装的jdk11版本依然是jdk10,怎么样才能安装openjdk 11呢,今天,我们就来完成这一工作. download software package [email protected]:~$sudo curl -sL https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz -

Ubuntu 18.04 安装Hadoop 2.10

安装步骤: 1.新建虚拟机(网络选桥接模式.内存尽量大) 2.安装Ubuntu 18.04 3.安装JDK JRE 4.创建hadoop用户 # 1.创建用户 sudo useradd -m hadoop -s /bin/bash # 2.设置密码(按提示输入两次密码) sudo passwd hadoop # 3.设置权限 sudo adduser hadoop sudo # 4.用hadoop登录后更新一下 apt sudo apt-get update 5.配置SSH无密码登录 ssh l

Ubuntu 18.04/18.10快速开启Google BBR的方法

说明:Ubuntu 18.04改变挺大的,内核直接升到了正式版4.15,而BBR内核要求为4.9,也就是说满足了,所以我们不需要换内核就可以很快的开启BBR,这里简单说下方法. 提示:Ubuntu 18.10依然可以用该方法开启BBR,而对于19.04.貌似官方直接给你开启了BBR,不需要重复开启了. 方法 1.修改系统变量 echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tc

ubuntu 18 当使用命令sudo apt-get install sysv-rc-conf安装不上时,提示“ E: 无法定位软件包问题

个人安装环境 1.ubuntu 18.04.1 问题描述 使用命令sudo apt-get install sysv-rc-conf安装不上时,提示“ E: 无法定位软件包问题 问题解决 1.进入 etc/apt cd /etc/apt 2.使用vim sources.list命令  在里面sources.list 添加镜像源: deb http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse 3.