摘要:
# NOTE: depending on your version of MySQL ## This example is for mysql 5.4Shell> for x in var=`cat mysql.log |grep Connect |awk '{print $2}' |cut -d: -f3`; do echo ${var:2:50} >> out.txt; doneI now have all of the connection ids for the database I want to benchmark. From here I nee 阅读全文
posted @ 2009-10-09 17:14
xxd
阅读(383)
评论(0)
推荐(0)
摘要:
比如一个字符串的存储为 qa,we,er,rt 我们要取这个字符串中的qa ,使用一个函数即可达到目的:select substring_index('qa,we,er,rt',',',1); 阅读全文
posted @ 2009-10-09 16:54
xxd
阅读(357)
评论(0)
推荐(0)
摘要:
共享文件的web server
把文件放到一个目录中,使用终 端进入这个目录,输入python -m SimpleHTTPServer 8888。然后访问ip:8888。这个也 可以不过麻烦些:python -c "import SimpleHTTPServer ; SimpleHTTPServer.test()" 阅读全文

posted @ 2009-10-09 14:47
xxd
阅读(459)
评论(0)
推荐(0)