try mysql5.5.8
首先閱讀下官方文件說明http://dev.mysql.com/doc/refman/5.5/en/source-installation.html
按照cmake吧,就不說了,下載原始碼,改bug
編譯
CC='/usr/bin/gcc'
CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -Wall -O3 -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF'
CXX='/usr/bin/gcc'
CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -felide-constructors -fno-exceptions -fno-rtti -fPIC -Wall -Wno-unused-parameter -fno-implicit-templates -fno-exceptions -fno-rtti -O3 -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF'
LDFLAGS=''
ASFLAGS=''
cmake -DCMAKE_INSTALL_PREFIX=$MYSQL_HOME
-DDEFAULT_CHARSET=gbk
-DMYSQL_UNIX_ADDR=$MYSQL_HOME/run/mysql.sock
-DWITH_INNOBASE_STORAGE_ENGINE=1
-DWITH_PERFSCHEMA_STORAGE_ENGINE=1
-DWITHOUT_ARCHIVE_STORAGE_ENGINE=1
-DWITHOUT_BLACKHOLE_STORAGE_ENGINE=1
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
-DWITHOUT_FEDERATED_STORAGE_ENGINE=1
-DWITHOUT_PARTITION_STORAGE_ENGINE=1
-DWITHOUT_ARCHIVE_STORAGE_ENGINE=1 .
make -j 16
make install
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Compressed tables use zlib 1.2.3
101221 13:51:32 InnoDB: Using Linux native AIO
101221 13:51:32 InnoDB: Initializing buffer pool, size = 32.0G
101221 13:51:33 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
101221 13:51:33 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
101221 13:51:33 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 500 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Progress in MB: 100 200 300 400 500
101221 13:51:34 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 500 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Progress in MB: 100 200 300 400 500
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: 127 rollback segment(s) active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
101221 13:51:37 InnoDB: 1.1.4 started; log sequence number 0
101221 13:51:37 [Warning] 'user' entry ignored in --skip-name-resolve mode.
101221 13:51:37 [Warning] 'user' entry ignored in --skip-name-resolve mode.
101221 13:51:37 [Warning] 'proxies_priv' entry '@ ignored in --skip-name-resolve mode.
101221 13:51:37 [Note] Event Scheduler: Loaded 0 events
101221 13:51:37 [Note] /home/oracle/mysql/bin/mysqld: ready for connections.
Version: '5.5.8-log' socket: '/home/oracle/mysql/run/mysql.sock' port: 3306 Source distribution
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7591490/viewspace-1043409/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- CentOS下安裝社群版本MySQL5.5.8CentOSMySql
- Laravel try catchLaravel
- Jumping with Try
- js try catchJS
- iOS的@try、@catch()iOS
- Try Pelican on my macbookMac
- Java 7 Try-With-ResourcesJava
- Java try catch finallyJava
- try-with-resources語法
- C++及Windows異常處理(try,catch; __try,__finally; __try, __except)——一道筆試題引起的探究C++Windows筆試
- Java趣味分享:try/finallyJava
- c++ try catch 問題C++
- 《從零開始學Swift》學習筆記(Day 55)——使用try?和try!區別Swift筆記
- python try異常處理Python
- (十四).try-throw-catch機制
- JavaScript try catch finally 語句JavaScript
- js中try和catch的用法JS
- JavaScript錯誤_throw、try和catchJavaScript
- Java try catch finally 總結Java
- JavaScript try/catch/finally 語句JavaScript
- 微軟:請不要使用 Try/Catch微軟
- java中try catch塊的使用Java
- 【C#之Try……Catch例項】C#
- try的簡單效能測試
- 解決yum [Errno 256] No more mirrors to try
- python怎麼寫try語句Python
- JS 使用try catch捕獲異常JS
- Java之異常處理try{}catch(){}Java
- [轉] Scala Try 與錯誤處理
- python-try-except:pass的用法Python
- java中的try-with-resource語法Java
- Java中try()catch{}的使用方法Java
- try throw catch 語句檢測input值
- Java基礎-try-with-resource語法糖Java
- java try(){}catch(){}自動資源釋放Java
- IDEA 自動生成try,catch快捷鍵Idea
- yum [Errno 256] No more mirrors to try 解決方法
- 深入理解 Java 中的 try-with-resourceJava