伏笔:server端是基于windows的server-u,启用了sftp,并不是标准的sftp,因此无法用ssh的key信任方式直接登录。为了节约人工,无奈之下,采用expect来解决问题。下面是例子:
#!/usr/bin/expect ## ## 用expect模拟sftp上传文件 ## created by yejr(imysql AT imysql.cn),2008/11/20 ## #取得传递参数,构造变量 set DT [lindex $argv 0] set NU [lindex $argv 1] set ftp_lcd "/dbbak/$DT/$NU"
从办公到家庭环境,或者从会议室到办公工位上的IP切换相信已经把你搞的烦死了,那么用下面的2个小脚本吧,呵呵,药到病除。
@echo off netsh interface ip set address name="local" source=dhcp netsh interface ip set dns name="local" source=dhcp
目前我用的HP 360G5服务器中,4个单核的cpu,6块盘,8G内存,按理说和DELL 2950差不多,应该性能来说也差不多,可是发现在大文件操作模式下,360G5比2950慢多了。经查,发现是raid控制器的firmware和磁盘控制器的firmware版本太低导致,下面是firmware升级前后的对比单项测试:
测试文件大小:38G
1.升级前
time cp -f file1 file2 real 10m48.215s
2.硬盘fw也升级后
time cp -f file1 file2 real 10m26.801s
3.升级 raid firmware
想要在MySQL 5.1以下的版本中动态抓取提交到MySQL中的查询日志,可以采用tcpdump的方法,大致如下:
tcpdump -i eth0 -s 0 -l -w - dst port 3306 | strings | egrep -i 'SELECT|UPDATE|DELETE|INSERT|SET|COMMIT|ROLLBACK|CREATE|DROP|ALTER|CALL'
eth0指mysqld监听的网卡,330自然是指mysqld监听的端口,正则匹配模式里,可以自己添加想要抓取的SQL语句类型。
本文主要探讨 mysqldump 的几种主要工作方式,并且比较一下和 mk-parralel-dump 的一些差异,为备份方式的选择提供更多的帮助。
首先来看下 mysqldump 的几个主要参数的实际工作方式。
由于某些BT的需求,把ftp的服务端改成ssl加密的,而标准的linux ftp客户端不支持,google了下,发现有个sslftp支持,它是 SurgeFTP 的组件之一。SurgeFTP的服务器端版本是收费的,客户端貌似免费,呵呵,正好。
下面演示如何用它登录ftp(ssl)。假设ftp(ssl)的端口是1234。
sslftp 192.168.0.84 -i -implicit_port 990 Connected to 192.168.0.84:1234 starting SSL/TLS secure protocol TLSv1 used. 220 Serv-U FTP Server v7.2 ready... (secure) User: yejr 331 User name okay, need password. (secure) Password: **************** 230-User logged in, proceed. 230 Welcome!
AWStats是一个免费的日志分析工具,用perl开发的。可以用于分析各种linux下的应用程序产生的日志,包括 apache/squid/samba/resin/tomcat 等等。在这里,我用它来分析apache日志。
AWStats 是采用perl开发的,linux系统中一般都有perl语言环境,因此无需做特别处理。如果还像通过web server查看分析结果,就需要让web server支持cgi才行了。在这里,我使用apache作为web server,因此我在编译apache时,加上了选项:--enable-cgi。
Kickfire Brings Powerful Purpose-Built Analytic Appliance to the MySQL World
Santa Clara, CA – October 14, 2008 – Kickfire™, Inc. today
announced that it has entered into a global multi-year MySQL
Enterprise™ data warehouse agreement with Sun Microsystems. Under the
terms, Kickfire's Series 2000 and 3000 analytic appliances will include
a MySQL Enterprise subscription, providing customers with a fully
integrated, plug-and-play solution. Kickfire will provide customers a
single point of contact for both hardware and MySQL™ technical support,
ensuring a seamless end-user experience.
参考文章:Making MySQL more usable: InnoDB save/restore buffer pool patch。
Jeremy Cole同学写了个补丁,用于将InnoDB 缓冲池(buffer pool)里的列表在关闭mysqld时保存到本地文件中,重启启动时再加载到内存中去。该补丁目前只适用于MySQL 5.1版本。作者计划该补丁至少应具备以下几点要求:
最近评论
1 天 14 小时 前
1 天 15 小时 前
2 天 11 小时 前
2 天 11 小时 前
3 天 21 小时 前
1 周 1 天 前
1 周 1 天 前