码迷,mamicode.com
首页 >  
搜索关键字:atlas mysql mysql-proxy centos    ( 120905个结果
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
Centos 6.3网卡启动需用Ifup-eth0启动问题.
Centos6.3网卡启动需用Ifup-eth0启动问题.使用命令ifupeth0可以正常设置启动,系统重启后或者重启网卡即失效了。永久解决方法1、在/etc/sysconfig/network-scripts/ifcfg-eth0只需修改ONBOOT=yes就OK--引导时是否激活设备DEVICE=eth0BOOTPROTO=noneHWADDR=00:1b:fc:32:6e:c6NM_C..
分类:其他好文   时间:2014-05-13 05:02:19    阅读次数:267
在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
微软私有云分享(R2)6-Linux的自动化部署
WindowsServer2012R2对Linux的支持变得越来越多了,用SCVMM2012R2部署Linux(如CentOS)显得更有价值,比如支持动态内存,运行效率更高等等。在SCVMM2012R2中部署Linux和Windows有很大差异,你以为"下一步"不停点下去就能搞定么?那是不可能的。=====前置条件========新手通过S..
分类:系统相关   时间:2014-05-13 02:22:24    阅读次数:462
监控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
rhel、centos好用的yum源
http://pkgs.repoforge.org/rpmforge-release/
分类:其他好文   时间:2014-05-13 01:49:34    阅读次数:224
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
centos 进入单用户
1、centos怎么让进入GRUB菜单界面?Linux开机引导的时候,按键盘上的e就可以进入进入GRUB菜单界面。2.在出现GRUB引导画面时(CentOS(2.6.18-274**)),按字母e键,进入GRUB编辑状态。3.把光标移动到kernel...那一行,再敲入“e”进入命令行编辑,在kernel一行的最后加上空格sing..
分类:其他好文   时间:2014-05-13 01:43:21    阅读次数:272
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!