Time of Update: 2015-03-12
標籤:mysql 備份 innobackupex 1、安裝從官方下載 http://www.percona.com/downloads/XtraBackup/可選擇編譯版與二進位版,二進位版仍需安裝依賴perl-DBD-MySQLyum install cmake gcc gcc-c++ libaio libaio-devel automake autoconf bzr bison
Time of Update: 2015-03-12
標籤:mysql raplication change slave_io_running slave_sql_running 環境: 主庫:192.168.1.1 從庫:192.168.1.2yum install wgetmv /etc/yum.repos.d/CentOS-
Time of Update: 2015-03-13
標籤:mysql啟動方式mysql 4種啟動方式都是去調用mysqld檔案1. mysqld 啟動進入mysqld檔案所在目錄(/../libexec/mysqld) ./mysqld --defaults-file=./my.cnf --user=mysql2. mysqld_safe 啟動進入mysqld_safe所在目錄(../bin/mysqld_safe)./bin/mysqld_safe --defaults-file=./my.cnf
Time of Update: 2015-03-13
標籤:mysql索引 mysql索引的類型和優缺點索引是一種特殊的檔案(InnoDB資料表上的索引是資料表空間的一個組成部分),它們包含著對資料表裡所有記錄的引用指標。註:[1]索引不是萬能的!索引可以加快資料檢索操作,但會使資料修改操作變慢。每修改資料記錄,索引就必須重新整理一次。為了在某種程式上彌補這一缺陷,許 多SQL命令都有一個DELAY_KEY_WRITE項。這個選項的作用是暫時制止MySQL在該命令每插入一條新記錄和每修改一條現有之後立刻對索引進
Time of Update: 2015-03-13
標籤:mysql 修改 資料庫 目錄 環境:OS:Red Hat Linux As 5DB:MySql 5.5
Time of Update: 2015-03-13
標籤:update localhost 台電腦 yum install mysqlyum install mysql-serveryum install mysql-develchgrp -R mysql /var/lib/mysqlchmod -R 770 /var/lib/
Time of Update: 2015-03-13
標籤:編譯 安裝 mysql如果我們想定製mysql的某些功能,而rpm包安裝或者二進位免編譯包沒有這些功能,那我們就不得不編譯安裝mysql。系統平台:RHEL6.6-i386用到安裝包:mysql-5.5.28.tar.gz下載連結:http://olex.openlogic.com/package_versions/13751/download?package_version_id=7427&path=https%3A%2F%2Folex-secure.openlogic.com%
Time of Update: 2015-03-13
標籤:From: http://www.cnblogs.com/xuxm2007/archive/2010/11/16/1878211.htmlSELECT * FROM table LIMIT 5; select &
Time of Update: 2015-03-13
標籤:From: http://blog.chinaunix.net/uid-26729093-id-4294287.html請參考:http://bbs.csdn.net/topics/330021260create table t2 ( id int primary key, gid c
Time of Update: 2015-03-13
標籤:一、mysql基礎: 1.資料類型: 1)數字類型: 整數: tinyint、smallint、mediumint、int、bigint 浮點數: float、double、real、decimal 2)日期和時間: date、time、datetime、timestamp、year 3)字串類型: 字串:
Time of Update: 2015-03-13
標籤:這兩天看《構建高效能Web網站》這本書,感覺寫的真是不錯,很多實際項目中會碰到的問題都有所提及,今天看到一個最左首碼原則,以前也聽說過,不過一直沒搞明白,今天查了下。 通過執行個體理解單列索引、多列索引以及最左首碼原則執行個體:現在我們想查出滿足以下條件的使用者id:mysql>SELECT `uid` FROM people WHERE lname`=‘Liu‘ AND `fname`=‘Zhiqun‘ AND
Time of Update: 2015-03-13
標籤:花了一個晚上得出的結論,autocommit=1是不是立刻提交,autocommit=0是沒有寫入資料庫的關閉資料,除非遇到commit和rollback。。。。。。。。把自己給逗了關閉資料庫探索資料又不見了。。。。。。另外mysql> select exists (select * from new2 where id=2);+----------------------------------------+| exists (select * from new2
Time of Update: 2015-03-12
標籤:原文地址: http://blog.csdn.net/iefreer/article/details/38366575有一些虛擬機器、雲主機供應商仍然使用的是老版本的安裝套件。預裝的應用軟體版本很低。比如 techbrood.com 使用的雲端服務器,其中MySQL預裝版本為老版本5.1.x。而最新的MySQL版本在效能、功能、安全性等方面都有了很多的改進。要從最新版本獲益,你需要把現有系統升級到5.5+(最新的版本是5.7),我保守一點,升級到5.6.20。
Time of Update: 2015-03-12
標籤:mysql錯誤如下:Timeout error occurred trying to stop MySQL Daemon.Stopping mysqld: [FAILED]Starting
Time of Update: 2015-03-12
標籤:show tables或show tables from database_name; // 顯示當前資料庫中所有表的名稱show databases; // 顯示mysql中所有資料庫的名稱show columns from table_name from database_name; 或show columns from database_name.table_name; // 顯示表中列名稱show grants for [email protected]; //
Time of Update: 2015-03-12
標籤:想測試自己的查詢語句,匯入批量的資料,一開始很慢以為是自己的語句有問題,後來是這個autocommit,效率相差好多好多。。。。。。。。。。。。delimiter // create procedure new(in num int) begin declare i int; set i=0; while i<num do insert into new values (i,"name");
Time of Update: 2015-03-12
標籤:From: http://www.cnblogs.com/magicsoar/p/3817518.htmlC++通過mysql的c api和通過mysql的Connector C++ 1.1.3操作mysql的兩種方式 使用vs2013和64位的msql
Time of Update: 2015-03-12
標籤:mysql 觸發器 文法 我要實現的功能是:在更新一個表時,從三個表中查詢記錄並插入到另外一個表中,下面是我寫觸發器的過程:第一次寫的觸發器如下:CREATE TRIGGER istmingxi AFTER UPDATE ON sys_shenbao FOR EACH ROW BEGIN SELECT
Time of Update: 2015-03-12
標籤:using System;using System.Data;using System.Configuration;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml.Linq;using MySql.Data;using MySql.Data.MySqlClient;namespace VideoWorks.ITmanage.DAL{ public abstract
Time of Update: 2015-03-12
標籤:using System;using System.Collections.Generic;using System.Linq;using System.Text;//導命名空間using System.Data;using MySql.Data.MySqlClient;using System.Configuration;namespace Test.DAL.MySql{public class DBHelp { private readonly string connString =