下載並改變執行許可權:wget http://www.day32.com/MySQL/tuning-primer.shchmod +x tuning-primer.sh./tuning-primer.sh結果報告:會用幾種顏色標記:藍色:總指標綠色:表示此參數還可以紅色:表示此參數有嚴重問題深紅色:表示有問題參數黃色:一些資訊提示而且還有警告:Note! This script will still suggest raising the join_buffer_size whenANY
使用mysql二進位方式串連您可以使用MySQL二進位方式進入到mysql命令提示字元下來串連MySQL資料庫。執行個體以下是從命令列中串連mysql伺服器的簡單一實例:複製代碼 代碼如下:[root@host]# mysql -u root -pEnter password:******在登入成功後會出現 mysql> 命令提示視窗,你可以在上面執行任何 SQL 陳述式。以上命令執行後,登入成功輸出結果如下:Welcome to the MySQL monitor. Commands
使用MySQL Administrator 登入,報錯: Either the server service or the configuration file could not be found.Startup variable and service section are there for disabled. 使用Root 登入進去以後看到管理功能都是禁止掉的,提示: This section is only avaliable when connected to localhost
本文轉自:http://dev.mysql.com/doc/refman/4.1/en/date-and-time-functions.html#function_date-formatDATE_FORMAT(date,format) Formats the date value according to the format string. The following specifiers may be used in the format string. As of MySQL 3.23,
MySQL 查詢in操作,查詢結果按in集合順序顯示 複製代碼 代碼如下:select * from test where id in(3,1,5) order by find_in_set(id,'3,1,5'); select * from test where id in(3,1,5) order by substring_index('3,1,2',id,1);偶爾看到的。。。或許有人會注意過,但我以前真不知道 SQL: select * from table where id IN (