码迷,mamicode.com
首页 >  
搜索关键字:mysql show profile    ( 114150个结果
boost的posix_time用法详解01
// boost_time.cpp : 定义控制台应用程序的入口点。 //made by davidsu33 //2014-5-11 //the usage of posix_time #include "stdafx.h" #include #include #include using namespace std; #define SHOW_VARIABLE(x){ cou...
分类:其他好文   时间:2014-05-13 09:12:49    阅读次数:656
ubuntu14.04 安装LNMP
通常我们使用centos来组建LNMP,但是我们开发时多使用ubuntu的桌面版本来调试,下面将详细介绍如何在ubuntu上安装一套LNMP。 一、下载并安装最新的ubuntu14.04桌面版本 二、安装mysql 1. 下载mysql的最新版本,例如: wget http://dl.mysql.cn/mysql5/5.5/mysql-5.5.25.tar.gz 2. 解压缩: t...
分类:其他好文   时间:2014-05-13 08:07:02    阅读次数:423
UC技术博客开放通知
UC正式推广官方技术博客,隐藏多年的浏览器技术开始陆续对外发布。...
分类:其他好文   时间:2014-05-13 06:49:04    阅读次数:199
mysql分解连接的总结(来自于高性能MySQL以及自己网站性能优化)
mysql高性能优化之多表连接拆分为多个单表查询...
分类:数据库   时间:2014-05-13 05:22:57    阅读次数:386
在SQL Server中实现 Limit m,n 的功能
在MySql和Sqlite中,可以用limit来查询第m条开始取n条的记录,如select*frommytablelimit1,3;但是在SQLServer中不支持limit语句,SQLServer支持Top,可以通过使用Top的嵌套来实现与limit相同的功能。如要取mytable表中的前10条记录,SQL中的语句如下:selecttop10frommytable如..
分类:数据库   时间:2014-05-13 04:37:46    阅读次数:397
mysql主从检测脚本
#!/bin/bash #checkmysqlslavestatus USER="check" PSW="***" RUNTIME=3600 ADDR="192.168.*.*" declare-aslave_is forIPin$ADDR do slave_is=($(/usr/local/mysql/bin/mysql-h$IP-u${USER}-p${PSW}-e"showslavestatus\G"|grepRunning|awk‘{print$2}‘)) if["${slave_is[0]}"="Y..
分类:数据库   时间:2014-05-13 04:33:44    阅读次数:374
python管理mysql,请叫我雷锋
#!/usr/bin/envpython#coding:utf8importos,sys,glob,time,MySQLdb,reDIRNAME=os.path.dirname(__file__)OPSTOOLS_DIR=os.path.abspath(os.path.join(DIRNAME,‘..‘))sys.path.append(OPSTOOLS_DIR)fromlibrary.mysqlconfigimportMySQLDConfig,getMyVariablesfromoptparseimport..
分类:数据库   时间:2014-05-13 02:46:59    阅读次数:809
监控mysql同步,修改DNS解析
#!/usr/bin/envpythonimporttime,MySQLdbfromsubprocessimportPopenfromsubprocessimportPIPEimportdns.queryimportdns.messageimportdns.tsigimportdns.tsigkeyringimportdns.updatedefset_dns(ip_list):key=dns.tsigkeyring.from_text({"cui.com":"SIvcwHj3goqYl0vKS6yOtdugx..
分类:数据库   时间:2014-05-13 02:04:53    阅读次数:377
python批量同步web服务器代码核心程序
#!/usr/bin/envpython#coding:utf8importos,sysimportmd5,tabfrommysql_co.my_dbimportset_mysqlfromssh_co.ssh_connectimportsshdfromssh_co.cfg.configimportssh_message,item_pathfromfileimportfindfiledefmy_mysql():db_file={}my_connect=set_mysql()f_file=findfile.mai..
分类:编程语言   时间:2014-05-13 01:44:22    阅读次数:449
Eclipse中查看Android模拟器SD卡目录
有时候用到Android模拟器来模拟SD卡相关操作,在Eclipse中可以直接查看SD卡目录; 首先,新建模拟器的时候要创建SD卡,存储的大小根据需要创建; 启动模拟器,在Eclipse中打开视图窗口:Window--Show View--File Explorer; 可以看到下面有mnt目录,mnt--sdcard 就是SD卡的目录, 也就是代码中 Environment...
分类:移动开发   时间:2014-05-12 22:38:13    阅读次数:498
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!