摘要:
一、linux本身自带python(版本2.7.5),由于我没有pip命令,首先安装pip 1、首先要安装setuptools 解压出来之后进入文件夹先编译 然后安装 2、下载pip的压缩包: 解压出来进入文件夹安装 二、安装redis-py模块 三、进入python连接redis 1、通过pyth 阅读全文
摘要:
#redis.conf # Redis configuration file example. # ./redis-server /path/to/redis.conf ################################## INCLUDES ################################### #这在你有标准配置模板但是每个redis服务器又需要个性设置的时候... 阅读全文
摘要:
阅读全文
摘要:
首先查看从的状态 mysql> show slave status \G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event M 阅读全文
摘要:
第一种情况,开启GTID,从库与主库不同步。 1、在从库上查看从的状态 mysql> show slave status \G *************************** 1. row *************************** Slave_IO_State: Master_ 阅读全文
摘要:
1、查询某张表的大小 2、查看某个数据库表的数据 [root@tst-yangsq2-2 ~]# mysqlshow -uroot -p --count test Enter password: Database: test + + + + | Tables | Columns | Total Ro 阅读全文
摘要:
在MySQL中删除主键需要两步. (1)如果有auto_increment,先删除之; (2)删除主键约束 primary key 1、alter table t9 modify id int(11); #这里用的modify,只改变数据类型,也可以用change,改变列名的同时输入新的数据类型。 阅读全文
摘要:
1、通过命令查看从库状态mysql> show slave status \G 发现错误 Could not execute Update_rows event on table mysql.user; Can't find record in 'user', Error_code: 1032; h 阅读全文
摘要:
导入时,系统会默认一个导入路径,如果导入路径不是默认路径,会报 The MySQL server is running with the --secure-file-priv option so it cannot... 的错误,可通过show variables like '%secure%';查 阅读全文
摘要:
1、查看表的创建语句 2、查看分区情况 阅读全文