標籤:一,下載MySQL 5.6.13MySQL Community Server 5.6.13:http://dev.mysql.com/downloads/mysql/,可以選擇作業系統平台。下面有三個可選的下載檔案,第一個是MySQL Installer 5.6 for Windows,這將下載下來一個.msi可執行安裝檔案。另外有兩個解壓版(Zip版)分別是Windows (x86, 64-bit), ZIP Archive 和 Windows (x86, 32-bit), ZIP
標籤:ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators
標籤:索引 mysql 最佳化 sql 前情提要 : 需求就是一個普通的兩個表串連從而查詢出詳細資料。其中A表是大表, 測試資料都有數萬條; B表是小表大概1000多條資料。1. 為了趕工寫出的未最佳化SQL(為突出主題, 返回欄位用 * 代替不寫出詳細欄位, WHERE條件也去掉了):SELECT * FROM A a
標籤:準備: create table t(x int primary key,y int unique,z int); insert into t(x,y,z) values(1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5),(6,6,6),(7,7,7),(8,8,8),(9,9,9);情況1:select 沒有用到索引 explain select z from t; type = all
標籤:http://dev.mysql.com/doc/refman/5.6/en/memory-use.html The following list indicates some of the ways that the mysqld server uses memory. Where applicable, the name of the system variable relevant to the memory use is given:All threads share
標籤:1、查詢資料庫 SHOW DATABASES;2、查詢資料庫中表 SHOW TABLES; SHOW TABLES FROM db;3、查詢表索引 SHOW INDEX FROM table4、查詢表中的列 SHOW [FULL] COLUMNS FROM tb1 FROM db_test; SHOW [FULL] COLUMNS FROM db_test.tb1;5、顯示當前使用或者指定的database中的每個表的資訊 SHOW