mariadb

How can I change the type of database in phpmyadmin from mariadb to mysql?

六月ゝ 毕业季﹏ 提交于 2020-04-30 15:02:10
问题 I'm using phpmyadmin with xampp on both of my home and work machines. Some queries didn't work for me when I was working on one computer, but it worked on another. I checked it and the only difference is in the database server type. My queries don't work on: Server type: MariaDB They do work on: Server type: Mysql How can I change it from MariaDB to Mysql then? 回答1: The answer to this difference is here: https://mariadb.com/kb/en/mariadb/mariadb-vs-mysql-compatibility/ I don't quite know what

DB insertion PHP script freezing randomly, no error log

♀尐吖头ヾ 提交于 2020-04-30 06:28:41
问题 I have a script that I run as a cron job every X minutes. It is being run on VPS using Apache, Centos, Maria DB 10.2, 6 Cores and 8GB of RAM. I applied a mechanism to prevent the script from running again if the current run didn't finish yet. It seems to run fine about 99% of the time. However, in a random manner, sometimes the script would just "freeze". The log file that the script is creating will either stop at one point before the EOE, or a 0 bytes log file will be created without

linux手动安装配置 mysql5.7

北城余情 提交于 2020-04-29 18:55:50
本文原出处地址 https://www.cnblogs.com/mujingyu/p/7689116.html 一、安装前的检查    1.1 检查 linux 系统版本     [root@localhost ~]# cat /etc/system-release       说明:小生的版本为 linux 64位:CentOS Linux release 7.4.1708 (Core)    1.2 检查是否安装了 mysql     [root@localhost ~]# rpm -qa | grep mysql       若存在 mysql 安装文件,则会显示 mysql安装的版本信息         如:mysql-connector-odbc-5.2.5-6.el7.x86_64       卸载已安装的MySQL,卸载mysql命令,如下:         [root@localhost ~]# rpm -e --nodeps mysql-connector-odbc-5.2.5-6.el7.x86_64       将/var/lib/mysql文件夹下的所有文件都删除干净。      细节注意:       检查一下系统是否存在 mariadb 数据库,如果有,一定要卸载掉,否则可能与 mysql 产生冲突。       小生的系统安装模式的是最小安装

ProxySQL官档翻译__11_ProxySQL配置之SSL_configuration

我的梦境 提交于 2020-04-29 15:26:50
11_ProxySQL配置之SSL_configuration 备注:文章编写时间201904-201905期间,后续官方在github的更新没有被写入 ~ ~ SSL Support 一、SSl设置[SSL configuration for backends] 从版本v1.2.0e开始,ProxySQL支持对后端使用SSL连接。尝试在旧版本上配置SSL将会失败。 1、重要提示: 1)仅支持v1.x中的后端SSL。在v2.x之前的版本中,客户端是无法使用SSL连接到ProxySQL的。 2)从v1.4.5开始,由于ProxySQL使用了mariadb-connector-c-2.3.1,所以只支持SSL/TLSv1.0: https://mariadb.com/kb/en/library/mariadb-connector-c-300-release-notes/ 3)在ProxySQL v2.x中,使用了mariadb-connector-3.0.2,它支持SSL/TLSv1.0、TLSv1.1和TLSv1.2。这适用于前端和后端连接。 2、启用SSL的准备工作 若要启用SSL连接,需要做如下准备: 1)为要使用SSL的服务器更新mysql_servers.use_ssl中SSL状态值; 2)更新关联的全局变量(仅在ProxySQL v1.x版本中需要,ProxySQL v2

CloudBeaver dbeaver web 版本

独自空忆成欢 提交于 2020-04-29 08:57:11
CloudBeaver 是dbeaver 提供的web版本,同时也提供了社区版(开源,很不错),以下是一个简单的使用 server 参考架构 java 环境 java 11 && maven 3.6 作为编译 库 Equinox osgi 容器 Eclipse Platform 虚拟文件系统以及插件管理 jetty web server java graphql api 作为前端访问 dbeaver 作为数据库管理平台 其他三方数据库驱动 支持的数据库 pg mysql mariadb sqlite firebird 说明 目前官方暂时还没提供docker 版本,后期制作一个docker镜像,代码也是很值得学习的 参考资料 https://github.com/dbeaver/cloudbeaver https://demo.cloudbeaver.io/ 来源: oschina 链接: https://my.oschina.net/u/4370305/blog/4257730

How do I join two tables and compare them? (I've asked several times, but I couldn't find the answer.)

|▌冷眼眸甩不掉的悲伤 提交于 2020-04-29 04:10:01
问题 I want to compare table 1 and table 2 only once. I want to print the same amount as the wrong amount or the data error on each side. 1.table name : hospital_payment_data id chart_num chart_name visit card_amount_received 1 9740 t1 2019-01-02 1000 2 23143 t2 2019-01-02 3000 3 14220 t3 2019-01-02 3000 4 2000 t4 2019-01-02 4000 5 3000 t5 2019-01-02 5000 6 3000 t5 2019-01-02 5000 7 4000 t6 2019-01-02 6000 8 5000 t7 2019-01-02 6000 2.table name : credit_card id card_date advenced_amount 1 2019-01

How do I join two tables and compare them? (I've asked several times, but I couldn't find the answer.)

点点圈 提交于 2020-04-29 04:09:31
问题 I want to compare table 1 and table 2 only once. I want to print the same amount as the wrong amount or the data error on each side. 1.table name : hospital_payment_data id chart_num chart_name visit card_amount_received 1 9740 t1 2019-01-02 1000 2 23143 t2 2019-01-02 3000 3 14220 t3 2019-01-02 3000 4 2000 t4 2019-01-02 4000 5 3000 t5 2019-01-02 5000 6 3000 t5 2019-01-02 5000 7 4000 t6 2019-01-02 6000 8 5000 t7 2019-01-02 6000 2.table name : credit_card id card_date advenced_amount 1 2019-01

MySQL DBA的修炼与未来(参考篇)

Deadly 提交于 2020-04-28 12:11:53
转自:https://blog.csdn.net/xielingshao/article/details/77840101 MySQL DBA的修炼与未来 随着MySQL地位爆炸式的提升, MySQL DBA的市场缺口日益剧增,优秀的MySQL DBA正在成为各个互联网公司抢手的人才。然而,需求来了,问题也来了,如何快人一步提高自身技能,让自己在日益激烈的技术挑战中不断增值、脱颖而出? 今天,我们将锁定MySQL数据库,通过韩锋、虢国飞、杨奇龙、杨建荣、张青林、李辉、贺春暘、李季鹏等8位MySQL专家的经验之谈,为想从事MySQL DBA的同学们答疑解惑,指明一条修炼的路子。 相关参考修炼书目: 《高性能MySQL(第3版)》 《MySQLDBA修炼之道》 《MySQL王者晋级之路》 《MySQL运维内参:MySQL、Galera、Inception核心原理与最佳实践》 《MySQL技术内幕++InnoDB存储引擎(第二版)》 《MySQL5.7-官方文档》 目录大纲 认真读完本文,你可以了解到: 一、选择篇 1、MySQL的流行原因及从业前景 2、MySQL DBA的薪资缘何普遍高于Oracle DBA 3、个人如何完成Oracle向MySQL的转型? 二、学习篇 1、从初级到高级的MySQL DBA学习路线及学习资料推荐 2、源码是否为高级MySQL DBA的必备技能? 3

MySQL基于Mycat实现读写分离

给你一囗甜甜゛ 提交于 2020-04-28 11:19:34
基于 Mycat实现读写分离 环境: mariadb主:192.168.200.129 Mariadb从 : 192.168.200.114 Mycat : 192.168.200.112 (1) 安装 jdk,先查看本机是否有jdk,由于Mycat是基于Java语言来编写的,所以需要安装JDK,版本为1.8即可。没有的话安装一下然后配置环境变量 [root@ns2 ~]# ls jdk-8u191-linux-x64.tar.gz [root@ns2 ~]# tar xf jdk-8u191-linux-x64.tar.gz //解压 [root@ns2 ~]# mv jdk1.8.0_191 /usr/local/java // 我把它移动到了 /usr/local 下起名叫 java [root@ns2 ~]# vim /etc/profile //配置环境变量 [root@ns2 ~]# source /etc/profile //声明一下 [root@ns2 ~]# java -version java version "1.8.0_191" Java(TM) SE Runtime Environment (build 1.8.0_191-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed

linux之mysql的yum方式安装问题处理

回眸只為那壹抹淺笑 提交于 2020-04-28 08:58:16
centos7默认不支持mysql(原因大家都懂),默认支持的是mariadb,mariadb是mysql一个开源分支。 1、卸载mariadb,否则安装mysql会出现冲突 执行命令 rpm -qa | grep mariadb 列出所有被安装的mariadb rpm 包; 执行命令 rpm -e --nodeps 包名称(比如:rpm -e --nodeps mariadb-libs-5.5.44-2.el7.centos.x86_64) 逐个将所有列出的mariadb rpm 包给卸载掉 2、添加官方的yum源 以centos7安装mysql5.6为例: 创建并编辑mysql-community.repo文件 vi /etc/yum.repos.d/mysql-community.repo 将以下内容粘贴进去并保存 [mysql56-community] name=MySQL 5.6 Community Server baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/ enabled=1 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql 注意:gpgcheck是GPG加密校验,官方文档中,值为1,但check会报错误