Time of Update: 2015-02-12
標籤:select{x table_name}from{x information_schema.tables}mysql> select{x table_name}from{x information_schema.tables};+----------------------------------------------------+| table_name |+---------------------
Time of Update: 2015-02-12
標籤:workbench mysql-er圖 下載安裝mysql workbench畫圖啦白白下載安裝mysql workbench首先是下載mysql workbench,windows系統的自己百度,我用的是ubuntu 14.04LTS,百度到的結果有點坑,叫我去官網,但是選擇平台後就沒下文了T_T,最後忽然想起系統內建有軟體中心,直接去本機內建的ubuntu softwore
Time of Update: 2015-02-12
標籤:在Mac OS X 10.8中配置Apache+PHP+MySQL的內容包括:配置Apache配置PHP安裝MySQL配置PHPAdmin設定資料庫預設字元集一. 配置Apache1. 啟動Apache開啟終端,輸入:sudo apachectl start 開啟瀏覽器,輸入:http://localhost應該可以看到”It
Time of Update: 2015-02-11
標籤:java mysql jdbc 1、錯誤描述com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxError Exception:You have an error in your SQL syntax check the manual that corresponds to your MySQL server version for the right
Time of Update: 2015-02-11
標籤:這些天在搞這些個東西做項目,配置較繁,這裡記下安裝過程中的要點。1、VMware Workstation主要是 NAT 方式連網的問題,詳述如下,來自網路。NAT 配置那裡注意網關,虛擬機器中網關的地址需一致。DHCP配置那裡有網路段區間,若用靜態分配地址,那麼靜態設定虛擬機器中的系統的 IP 需在該區間外。幾個網卡,vmnet0-橋接 ,vmnet1-host only,vmnet8-nat(Windows
Time of Update: 2015-02-11
標籤:linux mysql 主從現在測試的是兩個mysql都是新的,沒資料的。如果master有資料的,將資料庫匯出,並匯入slave資料庫中,在啟動同步之前,兩邊的資料要一致。PS: 主從伺服器的版本可以不一樣,但是從伺服器的版本必須高於主伺服器的版本。master:192.168.80.24slave :192.168.80.451、主伺服器上進行操作 (1)建立同步處理的使用者並授權
Time of Update: 2015-02-12
標籤:伺服器 mysql 主從設定
Time of Update: 2015-02-12
標籤:mysql 叢集 mysql-cluster 環境說明系統內容:CentOS 6.5 mini(64bit)軟體版本:mysql-cluster-advanced-7.3.7-linux-glibc2.5-x86_64.tar.gzIP地址:MGM:192.168.100.211NDBD1:192.168.100.212NDBD2:192.168.100.213SQL1:192.168.1
Time of Update: 2015-02-12
標籤:9.資料處理函數 文本處理:Upper 大寫mysql> select uid,name,msg, Upper(name) as UpperName from pw_luck;+-----+-----------+------+-----------+| uid | name | msg | UpperName |+-----+-----------+------+-----------+| 0 | Wilson | 100 | WILSON ||
Time of Update: 2015-02-12
標籤:把 Windows 下的應用部署到 Linux 下,使用到了 Quartz 叢集的特性,所以建了 MySql 的中間表,一啟動看到報錯:Invocation of init method failed; nested exception is org.quartz.JobPersistenceException: Couldn‘t retrieve trigger: Table ‘unmijob.QRTZ_TRIGGERS‘ doesn‘t exist [See nested
Time of Update: 2015-02-12
標籤:mysql 常用操作;lamp--mysql 恢複root密碼重設ROOT密碼:1. 編輯mysql主設定檔 my.cnfvim /etc/my.cnf 在[mysqld]欄位下添加參數 skip-grant 2. 重啟資料庫服務service mysqld restart3. 這樣就可以進入資料庫不用授權了mysql -uroot 4. 修改相應使用者密碼use mysql;update user set
Time of Update: 2015-02-12
標籤:mysql 常用操作;lamp--mysql 恢複root密碼重設ROOT密碼:1. 編輯mysql主設定檔 my.cnfvim /etc/my.cnf 在[mysqld]欄位下添加參數 skip-grant 2. 重啟資料庫服務service mysqld restart3. 這樣就可以進入資料庫不用授權了mysql -uroot 4. 修改相應使用者密碼use mysql;update user set
Time of Update: 2015-02-12
標籤:mysql ha 高可用 安裝mysql源碼包:(1).安裝cmake(mysql5.5以後是通過cmake來編譯的)下載解壓cmake-2.8.5.tar.gztar zxf cmake-2.8.12.2.tar.gz -C /usr/local/srccd /usr/local/src/cmake-2.8.12.2./configure
Time of Update: 2015-02-12
標籤:mysql ha 高可用 【主:10.142.132.52 mysql設定檔】[mysqld]datadir=/app/mysql/datasocket =/app/mysql/data/mysql.socklower_case_table_names=1character-set-server=utf8collation-server=utf8_general_ciserver_id =
Time of Update: 2015-02-12
標籤:mysql ha 高可用 rpm -ivh Atlas-2.2.1.el5.x86_64.rpm 【rpm包直接安裝】rpm -ql Atlas 【查看安裝路徑】grep -v ‘^#‘ /usr/local/mysql-proxy/conf/test.cnf |grep -v ‘^$‘ > lipengfei
Time of Update: 2015-02-12
標籤:mysql ha 高可用 MHA由Node和Manager組成,Node運行在每一台MySQL伺服器上,也就是說,不管是MySQL主伺服器、從伺服器、還MHA管理機器,都要安裝Node!MHA管理節點模組內部依賴MHA節點模組;MHA管理節點通過ssh串連管理mysql伺服器和執行MHA節點指令碼。步驟一、IP劃分: 主庫:10.
Time of Update: 2015-02-12
標籤:mysql ha 高可用 1、修複當AB故障切換一次後,mha-manager會自動結束【只是基本實現,可以在我的基礎上修改】【nohup 後台一直執行】vi /app/masterha/monitor.sh#!/bin/bashwhile : domhapid=`ps -ef|grep -v grep|grep masterha_manager |wc -l`echo
Time of Update: 2015-02-12
標籤:mysql ha 高可用 (1)設定relay log的清除方式(在每個slave節點上):mysql -e ‘set global relay_log_purge=0‘注意:MHA在發生切換的過程中,從庫的恢複過程中依賴於relay log的相關資訊,所以這裡要將relay log的自動清除設定為OFF,採用手動清除relay
Time of Update: 2015-02-12
標籤:一、MySQL Connector/ODBC 2.50 (MyODBC 2.50)串連方式 1、本機資料庫串連Driver={MySQL};Server=localhost;Option=16834;Database=myDataBase; 2、遠端資料串連Driver={MySQL};Server=myServerAddress;Option=131072;Stmt=;Database=myDataBase; User=myUsername;Password=myPassword; 3、
Time of Update: 2015-02-12
標籤: sudo apt-get install mysql-client-core-5.5然後會出現:ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock‘ (2) 接著:sudo apt-get install mysql-server