mariadb

阿里云轻量级服务器安装mysql5.7

北城余情 提交于 2020-12-04 18:02:15
转载至博客:https://www.cnblogs.com/bigbrotherer/p/7241845.html <我的是阿里云轻量级的服务器,即学生机,系统是centos7的> 在CentOS中默认安装有MariaDB,这个是MySQL的分支,但为了需要,还是要在系统中安装MySQL,而且安装完成之后可以直接覆盖掉MariaDB。 1 下载并安装MySQL官方的 Yum Repository [root@localhost ~]# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm 使用上面的命令就直接下载了安装用的Yum Repository,大概25KB的样子,然后就可以直接yum安装了。 [root@localhost ~]# yum -y install mysql57-community-release-el7-10.noarch.rpm 之后就开始安装MySQL服务器。 [root@localhost ~]# yum -y install mysql-community-server 这步可能会花些时间,安装完成后就会覆盖掉之前的mariadb。 至此MySQL就安装完成了,然后是对MySQL的一些设置。 2 MySQL数据库设置 首先启动MySQL

linux操作-centos下载mysql

拥有回忆 提交于 2020-12-04 07:40:25
在CentOS中默认安装有MariaDB,这个是MySQL的分支,但为了需要,还是要在系统中安装MySQL,而且安装完成之后可以直接覆盖掉MariaDB。 1 下载并安装MySQL官方的 Yum Repository [root@localhost ~]# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm 使用上面的命令就直接下载了安装用的Yum Repository,大概25KB的样子,然后就可以直接yum安装了。 [root@localhost ~]# yum -y install mysql57-community-release-el7-10.noarch.rpm 之后就开始安装MySQL服务器。 [root@localhost ~]# yum -y install mysql-community-server 这步可能会花些时间,安装完成后就会覆盖掉之前的mariadb。 至此MySQL就安装完成了,然后是对MySQL的一些设置。 2 MySQL数据库设置 首先启动MySQL [root@localhost ~]# systemctl start mysqld.service 查看MySQL运行状态,运行状态如图: [root@localhost ~]#

MariaDB

守給你的承諾、 提交于 2020-12-04 04:52:26
最近mysql出了点故障 老是启动报错。去官网下载还要账号注册 ,贼烦。 开启MariaDB的使用,完全无缝衔接mysql.自带客户端管理工具,可谓精巧精致。推荐使用,linux都开始放弃mysql开始使用mariaDB了。使用体验良好。推荐一下。 https://downloads.mariadb.org/interstitial/mariadb-10.2.14/winx64-packages/mariadb-10.2.14-winx64.msi/from/http%3A//mirrors.tuna.tsinghua.edu.cn/mariadb/ 来源: oschina 链接: https://my.oschina.net/u/3698560/blog/1799917

MariaDB Server MiniFest Wed 9 Dec 2020

ぃ、小莉子 提交于 2020-12-01 14:50:49
New MariaDB releases come with regular intervals. Releasing a new version is a balance between new functionality and bugfixes on one side, and stability on the other. How do we get optimum quality for the releases? And what exactly is quality, from the point of view of DBAs and developers that use MariaDB Server? That’s the setting of our MariaDB Server MiniFest in two weeks. New MariaDB Releases: The DBA & Developer Experience This MiniFest is called “mini” for three key reasons: 1.It has just one topic 2.It is much shorter, less than half a day 3.It happens just in one time zone But it still

String data, right truncated: 1406 Data too long for column

喜欢而已 提交于 2020-11-29 10:14:27
问题 The issue I am having is I am receiving the following error, I went into MySql and ran: ALTER TABLE block_content__field_views_reference_book MODIFY COLUMN field_views_reference_book_target_id varchar(500); To change it up from varchar(5) but still getting the error below, any suggestions? What am I missing?: Drupal\Core\Entity\EntityStorageException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'field_views_reference_book_target_id' at row 1: INSERT INTO

String data, right truncated: 1406 Data too long for column

。_饼干妹妹 提交于 2020-11-29 10:13:46
问题 The issue I am having is I am receiving the following error, I went into MySql and ran: ALTER TABLE block_content__field_views_reference_book MODIFY COLUMN field_views_reference_book_target_id varchar(500); To change it up from varchar(5) but still getting the error below, any suggestions? What am I missing?: Drupal\Core\Entity\EntityStorageException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'field_views_reference_book_target_id' at row 1: INSERT INTO

cannot increase open-files-limit in mariadb 10 on centos7

你说的曾经没有我的故事 提交于 2020-11-29 09:17:23
问题 I searched about the topic subject and tested options, but I still cant increase the open-files-limit on my mariadb server that is used as remote database server for cpanel/whm server. here is s good reference http://duntuk.com/how-raise-ulimit-open-files-and-mysql-openfileslimit I increased it in /etc/my.cnf open-files-limit=65550 here is some results #ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited

cannot increase open-files-limit in mariadb 10 on centos7

不想你离开。 提交于 2020-11-29 09:17:09
问题 I searched about the topic subject and tested options, but I still cant increase the open-files-limit on my mariadb server that is used as remote database server for cpanel/whm server. here is s good reference http://duntuk.com/how-raise-ulimit-open-files-and-mysql-openfileslimit I increased it in /etc/my.cnf open-files-limit=65550 here is some results #ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited

Transaction issue with knexjs, typescript and mariadb

房东的猫 提交于 2020-11-29 02:08:31
问题 I want to have a transaction, in typescript, to refresh some data in a table. To do so the following steps need to apply: Truncate all the records from a table Set the AUTO_INCREMENT to 1 Insert the new records in the table If something goes wrong I would like to rollback the transaction and not alter the existing records in the db table. I have tried different things but I think I am missing something and I wish someone can spot what I am doing wrong. 1st Attempt await knex.transaction(async

Prometheus+Grafana 基础及简单搭建

流过昼夜 提交于 2020-11-28 13:57:27
〇、前言 监控四要素:监控对象、监控软件、监控时间、报警 prometheus官网下载很慢,阿里云镜像站都有,prometheus以及插件的deb包地址: https://mirrors.aliyun.com/ubuntu/pool/universe/p/ 一、Prometheus概述 1、Prometheus基于时间序列的数值数据的容器监控解决方案,是一套开源的监控&报警&时间序列数据库的组合,适合监控docker容器 2、时间序列:按照时间顺序记录系统、设备状态变化的数据,被称为时序数据 3、基于时间序列数据的特点: (1)性能好:关系型数据库处理大规模数据适合性能弱,NOSQL可以比较好的处理,但仍比不上时间序列数据库 (2)存储成本低:搞笑的压缩算法,节省存储空间,有效降低IO 4、Prometheus特征: (1)多维度数据模型 (2)灵活的查询语言 (3)不依赖分布式存储,单个服务器节点即可实现监控 (4)以HTTP方式,通过pull模型拉取时间序列数据 (5)也可以通过中介网关支持push模型 (6)通过服务发现或者静态配置,来发现目标服务对象 (7)支持多种多样的图表和界面显示 5、Prometheus架构图 Prometheus根据配置的任务(job)以周期性pull的方式获取指定目标(target)上的指标(metric)。 (1)Prometheus