標籤:Install Cmake1. download cmake source code at http://www.cmake.org/files/v3.1/cmake-3.1.0.tar.gz2. ./configure & make & make install Build MySQL source code download at
標籤:安裝mysql-python1、使用yum安裝1.1檢查MySQL-python[[email protected] mysql_tools]# pythonPython 2.4.3 (#1, Dec 10 2010, 17:24:32) [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2Type "help", "copyright", "credits" or "license" for more
標籤:MySql 效能到底能有多高?用了php半年多,真正如此深入的去思考這個問題還是從前天開始。有過痛苦有過絕望,到現在充滿信心! MySql 這個資料庫絕對是適合dba級的高手去玩的,一般做一點1萬篇新聞的小型系統怎麼寫都可以,用xx架構可以實現快速開發。可是資料量到了10萬,百萬至千萬,他的效能還能那麼高嗎?一點小小的失誤,可能造成整個系統的改寫,甚至更本系統無法正常運行!好了,不那麼多廢話了。用事實說話,看例子: 資料表 collect ( id, title
標籤:mysql 大資料分頁和索引使用使用覆蓋索引一個表建立在id,create_time上建立了索引。如下2個sql語句,執行時間一樣。 因為查詢欄位id被索引覆蓋。 select id from order_manage where create_time > ‘2014-01-01‘ order by create_time desc limit 100000,10 select a.id from order_manage a inner join (
標籤:彙總函式MySQL 彙總函式常用的有五個 SUM COUNT AVG MIN/MAX AVG ([DISTINCT] expr) 返回expr 的平均值。DISTINCT 選項可用於返回expr的不同值的平均值。 SELECT gender, AVG(age) FROM student GROUP BY gender;COUNT(expr) 返回SELECT語句檢索到的行中非NULL值的數目。 SELECT COUNT(*) FROM student;
標籤:error 2002 (hy000): can't connect to local mysql server through socket '/var/lib/mysql/mysql.sock' (2) my.cnf添加 [client] socket = /tmp/mysql.sock(tmp該為實際路徑)ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket