12 2013 档案
摘要:What is Docker?Docker is an open-source project to easily create lightweight, portable, self-sufficient containers from any application. The same container that a developer builds and tests on a laptop can run at scale, in production, on VMs, bare metal, OpenStack clusters, public clouds and more.do
阅读全文
摘要:就像在windows下创建两个点以上的文件无法删除一样,linux下也可以有同样的技巧:[root@localhost ~]# touch test/.immutable[root@localhost ~]# chattr +i test/.immutable[root@localhost ~]# chattr +i test/[root@localhost ~]# mkdir test/foobarmkdir: cannot create directory `test/foobar': Permission denied[root@localhost ~]# touch test/
阅读全文
摘要:http://www.cnblogs.com/xiongpq/p/3384681.html
阅读全文
摘要:官方文档:部分备份:http://www.percona.com/doc/percona-xtrabackup/2.1/innobackupex/partial_backups_innobackupex.htmlhttp://www.percona.com/doc/percona-xtrabackup/2.1/innobackupex/restoring_individual_tables_ibk.html增量备份:http://www.percona.com/doc/percona-xtrabackup/2.1/innobackupex/incremental_backups_innobac
阅读全文
摘要:默认情况下,计划任务没有开启,可以能过下面命令开启(一) 查看当前是否已开启事件计划:SHOW VARIABLES LIKE 'event_scheduler';(二) 开启事件计划(调度器)开关有4种方法: SET GLOBAL event_scheduler = ON;键值1或者ON表示开启;0或者OFF表示关闭;
阅读全文
摘要:在数据库服务器上,可以架构多个Mysql服务器,进行单机多实例的读写分离;可以通过mysqld_multi来进行多实例的管理,mysqld_multi是用perl写的脚本,原理是通过mysql_admin来进行多个数据库的操作;多实例的配置文件也有点不同,可以看作是多个mysql配置的集合;mysq...
阅读全文
摘要:定义合适的数据类型对Mysql性能提升非常重要IPV4地址的存储:IPV4地址,例如:127.0.0.1 = 10000000 00000000 00000000 00000001,实际上是一个32位的无符号整数,用小数点分隔开方便阅读,并不是字符串,所以存储时,应该使用unsigned int来存储。显示的时候用INET_ATON来转换成ip格式,更新或插入时使用INET_NTOA转换成整数插入。时间的存储:很多人喜欢用INT来存储时间,实际上,这并不能带来任何性能上的提交;使用内置的DATETIME和TIMESTAMP更方便,因为Mysql内置的很多时间函数可以对时间进行处理。一般情况下,
阅读全文