嵌入式一般使用SQLite資料庫,但功能都不如MySQL,加上項目需要成功移植MySql5.1.32到samsung6410 arm11平台
運作起來還不錯,步驟如下:
mysql-5.1.32 for arm platform porting:
1.modify configure file, comment "run test program while cross compiling" part,refer to "http://www.linuxidc.net/thread-2119-1-1.html"
2../configure --host=arm-linux -with-named-curses-libs=/usr/lib/libncurses.so.5 --prefix=/usr/local/mysql
3.make libncurses.so.5 from ncurses-5.6.tar.gz, then copy ncurses-5.6/lib/libncurses.so.5 .so.5.6 to /usr/lib
4.scripts/Makefile.in line:512, skip comp_sql generate, copy from mysql-pc/scripts/ dir
5.extra/Makefile.in line:546, skip comp_err generate, copy from mysql-pc/extra/ dir
6.sql/Makefile.in line:738,1182, skip comp_err generate, copy from mysql-pc/sql/ dir
7.add #define STACK_DIRECTION 1 on sql/sql_parse.cc line:5432
![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLicmbw5COxMWM1MGMkZDOlhzNjFzYwYjMkFTO1kDM3EzMzEjYw8CX0JXZ252bj91Ztl2Lc52YucWbp5GZzNmLn9Gbi1yZtl2Lc9CX6MHc0RHaiojIsJye.png)