![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Mysql
qq_895043460
从未知到已知。
展开
-
麒麟安装MySQL-python报错:_mysql.c:1804:41: 错误:‘MYSQL {或称 struct st_mysql}’没有名为‘reconnect’的成员
1. 下载包,官网下载都行。pip download MySQL-python==1.2.32. 解包修改tar -zxfMySQL-python-1.2.3.tar.gzcd MySQL-python-1.2.3/vi _mysql.c +1804, 注释内容:/* if ( reconnect != -1 ) self->connection.reconnect = reconnect; */tar -zcfMySQL-python-1.2.3.tar.gz...原创 2021-12-08 17:43:07 · 546 阅读 · 0 评论 -
MySQL 快速查询--索引添加
> use mgnt;> create index 索引名 on clusters_cluster(cluster_name); # create创建索引。> alter table table_name add index 索引名(cluster_name) ; # alter方法创建索引, table_name表名,cluster_name字段名。索引分类:PRIMARY, INDEX, UNIQUE 这3种是一类PRIMARY 主键。 就是 唯一 且 不能为空。..原创 2020-08-11 18:51:03 · 277 阅读 · 0 评论 -
基于mariadb的 双主配置
参考:https://www.cnblogs.com/HA-Tinker/p/10970967.html参考:https://www.cnblogs.com/benjamin77/p/8682360.html1. 下载mysql。该处使用mariadb(依据rpm包的安装)2. centos7.环境server1: 172.16.105.92 server2:172.16.105....原创 2020-03-20 14:18:34 · 318 阅读 · 0 评论