原创 mysql慢查詢

MYSQL慢查詢一、查看系統所有參數狀態:mysql> show variables二、查看慢查詢的定義:mysql> show variables like '%quer%';| log_slow_queries            

原创 mysql自動備份腳本

#!/bin/bashbak_dir=/tmp/`date +%Y%m%d`mysqldb=testmysqlusr=rootmysqlpw=123456mysqlcmd=/usr/bin/mysqldumpif [ $UID -ne 0

原创 性能調優

1、硬件優化開啓CPU最大性能模式CPU Power Management = Maximum Performance關閉虛擬化Virtualization Technology= Disabled關閉自動超頻Intel(R) Turbo

原创 python2.7.5升級到3.5.0

當前系統版本centos7.2_x641.查看當前python版本python -VPython 2.7.5 2.下載python3.5.0版本wget https://www.python.org/ftp/python/3.5.0/Pyt

原创 RHEL7.2_X64系統時區設置不對導致定時計劃任務沒有自動執行

系統版本RHEL7.2_X641.檢查計劃任務服務是否啓動systemctl status crond.service 2.查看計劃任務日誌tail -f /var/log/cron 3.date查看時間dateFri May 11 13:

原创 CentOS7.2下安裝MySQL

一、系統環境[root@localhost home]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) 二、mysql安裝安裝mysql和mysql-devel都成

原创 Windows10安裝NTP服務器

1.進入到服務器,依次點擊:windows+R彈出運行窗口---regedit---確定然後點擊確定。 2.依次展開:HKEY_LOCAL_MACHINE、SYSTEM、CurrentControlSet、Services、W32Time、

原创 SUSE_11_X64_SP4環境下安裝ORACLE_11G_R2

一、準備工作:1.IP設置爲靜態2./etc/hosts文件的配置必須跟本機ip信息一致3.SUSE_11_X64_SP4系統環境4.ORACLE_11G_R2安裝包:linux.x64_11gR2_database_1of2.ziplin

原创 mysql自動備份腳本

#!/bin/bashbak_dir=/tmp/`date +%Y%m%d`mysqldb=testmysqlusr=rootmysqlpw=123456mysqlcmd=/usr/bin/mysqldumpif [ $UID -ne 0

原创 centos7.2_x64搭建ntp時間服務器

系統版本centos7.2_x641.安裝ntp時間服務程序yum -y install ntp 2.配置ntp服務vi /etc/ntp.conf設置時間源,這裏可以使用centos提供的默認時間源,其他都爲默認server 0.cent

原创 U盤安裝CentOS7.2_x64提示No Caching mode page found

1、錯誤描述[sdb] No Caching mode page found[sdb] Assuming drive cache:write through....Could not boot/dev/root does not exist

原创 mysql慢查詢

MYSQL慢查詢一、查看系統所有參數狀態:mysql> show variables二、查看慢查詢的定義:mysql> show variables like '%quer%';| log_slow_queries