摘要:前言 本文主要实验所用的环境, 后端是golang, gin web框架. mysql driver: github.com/go-sql-driver/mysql v1.4.1 迁移后PostgreSQL driver: github.com/jackc/pgx/v5 v5.1.1 迁移前服务器版
阅读全文
摘要:1. 安装 1.1. 检查是否已安装 mariadb yum list installed | grep mariadb 1.2. 安装MariaDB 如果未安装,执行以下命令安装命令 yum -y install mariadb mariadb-server 1.3. 安装完成MariaDB,首先
阅读全文
摘要:show variables like 'character%'; SHOW VARIABLES LIKE 'collation_%'; 在mysql的设置中推荐使用utf8mb4编码而不是utf8, 具体原因请参考下面这篇文章 https://mathiasbynens.be/notes/mysq
阅读全文
摘要:Here are the commands to run to install MariaDB 10.2 from the MariaDB repository on your Ubuntu system: Once the key is imported and the repository ad
阅读全文
摘要:前置条件 #mysql 已经注册为服务,已经启动 #检查mysql服务状态,如果为disabled 或者未设置为服务需要启动 设置为服务(为了开机启动)并启动它 #检查mysql状态 centos 7+ systemctl status mysql# 设置为服务(开机启动) systemctl en
阅读全文
摘要:本文所描述的安装方法实用于以下软件环境 ,不能保证使用于其他版本,请参考自己实际情况调整安装方法及参数。 操作系统版本:Ubuntu Server 14.04 LTS 64bit 欲安装MariaDB版本:MariaDB 5.5.39 准备工作 确定安装版本以及安装文件 https://downlo
阅读全文