1,支持批量更新[這個功能挺方便]
假設訂單表t_order,列fid:訂單編號,fname:訂單名稱
訂單項表t_detail,列fid:項編號,forderid:訂單編號,fname,訂單名稱,現在要設置t_detail表的fname值
sql 語句:upddate t_detail as detail left join (select fid as forderid,fname from t_order) as  order using(forderid) set detail.fname=order.fname

2,linux機器上mysql數據庫文件授權:
(1)假設數據庫目錄 /usr/local/mysql/data/db   --------  執行腳本:chown -R mysql:mysql db
(2)進入數據庫 grant all on * to mysql;

3,對某臺機器開放連接權限
mysql里執行 grant all on *.* to user@ip identified by 'password';
然后更新 flush privileges

4,啟動和停止mysql服務
/usr/local/mysql/bin/safe_mysql 啟動
/usr/local/mysql/bin/mysqladmin shutdown -uroot -p 停止

5,重新讀取數據庫文件記錄
flush tables

6,查看正在執行的mysql進程
show processlist

7,替換插入
replace into table values(...)

8,導入導出
導出:select * from table into outfile '/usr/local/data.txt'
導入:load data infile '/usr/local/data.txt' [replace or ignore] into table ...