2019年11月19日

python访问MySQL的几种方式

摘要: 客户端程序访问MySQL数据库,一般有3种方式: 1. MySQL Connectors Oracle develops a number of connectors: Connector/C++ enables C++ applications to connect to MySQL. Conne 阅读全文

posted @ 2019-11-19 23:31 pengyicun 阅读(394) 评论(0) 推荐(0) 编辑

2019年10月13日

isomd5sum工具

摘要: # apt-cache search md5 | grep md5cl-md5 - Common Lisp package for MD5 Message Digestscrack-md5 - Password guessing program (MD5 variant)md5deep - tran 阅读全文

posted @ 2019-10-13 18:16 pengyicun 阅读(1847) 评论(0) 推荐(0) 编辑

在MySQL和分布式TiDB之间迁移数据

摘要: 在MySQL和分布式TiDB之间迁移数据,这里用到mydumper工具。 迁移分为2步: 第1步:dump到本地,需要保证本地有足够的磁盘空间 第2步:在分布式TiDB上恢复数据 附1:mydumper的安装过程 1. 获得root权限: $ su root 2. 更新包列表信息 # apt-get 阅读全文

posted @ 2019-10-13 18:04 pengyicun 阅读(1274) 评论(0) 推荐(0) 编辑

Python软件仓库pip

摘要: Find, install and publish Python packages with the Python Package Index https://pypi.org/ 如何安装pip: 1. 下载get-pip.py文件: $ curl https://bootstrap.pypa.io 阅读全文

posted @ 2019-10-13 13:32 pengyicun 阅读(775) 评论(0) 推荐(0) 编辑

安装Python yaml模块

摘要: 在Windows上安装yaml模块,使用pip安装。 >pip install PyYAMLCollecting PyYAML Downloading https://files.pythonhosted.org/packages/da/7e/b82dad5d7343eb3d53cf84aaefb5 阅读全文

posted @ 2019-10-13 12:59 pengyicun 阅读(2185) 评论(0) 推荐(0) 编辑

Windows安装Python MySQLdb模块

摘要: 在Windows 10上安装Python MySQLdb模块,遇到了一点问题,记录如下: 1. 使用pip安装 >pip install MySQL-python Collecting MySQL-python Using cached https://files.pythonhosted.org/ 阅读全文

posted @ 2019-10-13 12:51 pengyicun 阅读(569) 评论(0) 推荐(0) 编辑

2015年8月6日

CentOS系统部署FTP服务器

摘要: 拟在CentOS操作系统中部署VSFTPD文件服务器。服务器环境如下:操作系统:GNU/Linux,x86_64发行版本:CentOS release 5.9vsftpd版本: version 2.0.5步骤1:安装相关的组件使用CentOS官方源安装vsftpdyum search vsftpdy... 阅读全文

posted @ 2015-08-06 18:53 pengyicun 阅读(256) 评论(0) 推荐(0) 编辑

2014年10月22日

用Pacemaker来实现高可用性

摘要: 高可用性(High Availability)的目的是保持服务的高度可用性。系统可用性分类可用比例年停机时间可用性分类99.5%3.7天常规系统99.9%8.8小时可用系统99.99%52.6分钟高可用系统99.999%5.3分钟可自动恢复系统99.9999%32秒容错系统Pacemaker是一个集... 阅读全文

posted @ 2014-10-22 17:22 pengyicun 阅读(312) 评论(0) 推荐(0) 编辑

2014年10月1日

TFS NameServer的高可用性(HA)

摘要: 在集群中,部署主辅NameServer,即Master和Slave。当主NameServer(Master)出现故障时,例如,NameServerMaster所在的物理服务器宕机,利用vip切换至辅NameServer(Slave)以继续对外提供服务。除了NameServer所在的服务器硬件宕机... 阅读全文

posted @ 2014-10-01 11:40 pengyicun 阅读(1169) 评论(0) 推荐(0) 编辑

2014年9月30日

TFS分布式文件系统

摘要: TFS是由淘宝开发的一个分布式文件系统,详细情况请参见TFS项目主页。当前,TFS的最新版本为V2.6.6,本系列涉及讨论的TFS版本为V2.2.8(tfs-VER:V2.0.1)。TFS有三个大的稳定版本,V1.3、V2.0和V2.2。在使用时,NameServer、DataServer应该为同一... 阅读全文

posted @ 2014-09-30 17:55 pengyicun 阅读(709) 评论(0) 推荐(0) 编辑

导航