Time of Update: 2015-04-17
標籤:1. 配置AOP切面類 DataSourceAdvice.javapackage until;import java.lang.reflect.Method;import org.springframework.aop.AfterReturningAdvice;import org.springframework.aop.MethodBeforeAdvice;import org.springframework.aop.ThrowsAdvice;public class
Time of Update: 2015-04-17
標籤:mysql slow_query_log 慢查詢 慢查詢日誌用來最佳化Query語句,以下是有關的幾個參數,5.5版本以後可以到微妙(ms)mysql> show variables like ‘%slow%‘;+---------------------------+-------------------------------+|
Time of Update: 2015-04-17
標籤:powerdesigner反向工程mysql說明:工作中有時候需要把資料庫中的表匯出到PowerDesigner以方便查看。一:下載MySQL ODBC二:配置ODBC資料來源三:PowerDesigner串連資料庫四:PowerDesigner匯出資料1.1到MySQL官網下載MySQL ODBC http://dev.mysql.com/downloads/connector/odbc/5.1.html 650) this.width=650;" src="http://s3
Time of Update: 2015-04-17
標籤:serialSERIAL是BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE的一個別名。在整數列定義中,SERIAL DEFAULT VALUE是NOT NULL AUTO_INCREMENT UNIQUE的一個別名。註:上面NOT
Time of Update: 2015-04-17
標籤:各個平台mysql 重啟:inux平台及windows平台mysql重啟方法 Linux下重啟MySQL的正確方法: 1、通過rpm包安裝的MySQL service mysqld restart 2、從源碼包安裝的MySQL // linux關閉MySQL的命令 $mysql_dir/bin/mysqladmin -uroot -p shutdown // linux啟動MySQL的命令 $mysql_dir/bin/mysqld_safe & 其中mysql_
Time of Update: 2015-04-17
標籤:一. 主伺服器Master1. 設定許可權使用者設定只允許192.168.120.27訪問的使用者:grant replication slave,super,reload on *.* to [email protected] identified by ‘zhijiatest‘;2. 主要資料庫伺服器安裝目錄,開啟my.ini,在檔案末尾增加如下配置:#資料庫ID號,
Time of Update: 2015-04-17
標籤:1. 修改root許可權GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ identified by ‘root‘ WITH GRANT OPTION;-- 設定特定主機才擁有存取權限GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘localhost‘ identified by ‘root‘ WITH GRANT OPTION;2. 檢查帳戶預設密碼和弱密碼update user set password=password(
Time of Update: 2015-04-17
標籤:功能用於外網用戶端串連內網的MySQL,將此工具安裝在代理服務器上。軟體版本mysql-proxy-0.8.1-linux-rhel5-x86-64bit.tar.gz簡單的配置過程解壓後有5個目錄bin include lib libexec share進bin目錄,查看mysql_proxy的使用協助[[email protected] bin]# ./mysql-proxy --help-allUsage: mysql-proxy [OPTION...] -
Time of Update: 2015-04-17
標籤:1. mysql 增加新使用者:insert into mysql.user(Host,User,Password,ssl_cipher,x509_issuer,x509_subject) values("xx.xx.xx.xx","xiaomin.wxm",password("wxm"),‘‘,‘‘,‘‘);Query OK, 1 row affected (0.10
Time of Update: 2015-04-17
標籤:資料庫 無法登入 mysql資料庫用rpm包安裝後,出現了一系列的問題,下面就開始解答一下1.安裝完成後,service mysql start ,正常啟動 使用mysql或者mysql -u root -p直接斷行符號後,報如下錯誤 ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO)
Time of Update: 2015-04-17
標籤:heartbeat192.168.1.210 node1192.168.1.220 node2192.168.1.200 nfs1.200:yum install -y nfs-utilsvim /etc/exports/data/share 192.168.1.0/24(rw,sync,no_root_squash)/etc/init.d/rpcbind restart; /e
Time of Update: 2015-04-17
標籤:ubuntu mysql ubuntu 14 安裝MySQL指南安裝MySQLsudo apt-get install
Time of Update: 2015-04-17
標籤:/* 觸發器 觸發器基本文法: create trigger 觸發器名稱 [before/after] [insert/update/delete] on 表名 for each row begin 觸發器本文 end;*/樣本一(僅供參考)create trigger 觸發器名稱 after insert on 表名for each rowBEGIN DECLARE recIdNo int(11); DECLARE rownum
Time of Update: 2015-04-17
標籤:python django mysql 1.建立一個project2.建立第一個頁面3.建立一個app4.然後給app增加一個頁面4.1在setting裡面配置:在my_project的url中添加在app1的urls中添加建立views然後就可以通過127.0.0.1:8000
Time of Update: 2015-04-17
標籤:mysql 聚類查詢 sql group
Time of Update: 2015-04-17
標籤:①.修改%xampp%\phpMyAdmin\config.inc.php檔案 [php] view plaincopy /* Authentication type and info */ $cfg[‘Servers‘][$i][‘auth_type‘] = ‘config‘; $cfg[‘Servers‘][$i][‘user‘] = ‘root‘; $cfg[‘Servers‘][$i][‘password‘] = ‘‘; $cfg[‘Servers‘][$i][‘
Time of Update: 2015-04-17
標籤: 映射類型 Java類型 標準SQL欄位類型 integer int or java.lang.Integer INTEGER long long or java.lang.Long BIGINT short short or java.lang.Short SMALLINT float float or java.lang.Float FLOAT double double
Time of Update: 2015-04-17
標籤:mysql基礎操作★mysql索引alter table建立普通索引、unique索引或primary key索引alter table table_name add index index_name(column_list)alter table table_name add unique index_name(column_list)alter table table_name add primary key index_name(column_list)create
Time of Update: 2015-04-17
標籤:mysql linux centos 虛擬機器 telnet
Time of Update: 2015-04-17
python學習之--windows安裝mysql-python module,mysqlpythonwindows最近在學習使用Django,看到串連資料庫需要mysql-python module然後我就去下載,我最開始使用pip 安裝 ,發現一直報錯返回的錯誤資訊是:vcvars32.bat這個檔案找不到,大致是因為我的電腦上沒有安裝visual c++ 2008,我安裝是是2013嘗試了SET VS90COMNTOOLS=%VS120COMNTOOLS%還是不行然後我就