SolusiProgram.com
  • Free Software Here »
    • Solusi Toko versi 1.1
    • Solusi Toko for Android
    • Mysql Server for Android
    • Aplikasi Absensi
  • Some Tutorials »
    • Ajax-SEO with Back-Forward Browser Support
    • Compile Mysql
  • Master Software Updated Version »
    • Master Solusi Toko Updated Version


Compile Mysql Server for Android

  • Get a rooted Android
  • Install busybox and linux deploy by meefik
  • Open linux deploy then do these:
    • tap menu - setting - set path to \system\xbin then update ENV
    • tap the download icon, set Distribution: Debian, set User password: changeme, set SSH Enable
    • run install from the left menu icon
    • tap start
  • Connect the Android and laptop to the same Wi-Fi hotspot or set the Android as a Portable Wi-Fi Hotspot through it's network setting
  • Run putty (ssh client) from laptop to connect to 192.168.43.1 (or IP shown by linux deploy) then do these:
    
    sudo su
    apt-get install build-essential libncurses5-dev bison groff
    wget http://cdn.mysql.com/archives/mysql-5.0/mysql-5.0.51a.tar.gz  and save it to /home/android/
    cd /home/android
    tar -zxvf mysql-5.0.51a.tar.gz
    cd /home/android/mysql-5.0.51a
    make distclean
    ./configure --enable-assembler --disable-community-features --without-debug --with-mysqld-ldflags=-all-static --prefix=/data/data/com.solusiprogram.mysql/mysql/ --without-query-cache  --without-geometry  --without-extra-tools  --disable-shared --disable-profiling --disable-grant-options --disable-largefile --without-uca --without-docs --without-man --without-ndb-debug --without-bench
    make
    make install
                              
    • if succeed, the result will be at: /data/data/com.solusiprogram.mysql/mysql
    • do below if there is problem with "Wrong formatspecifier of error message string for error 'ER_READY' in language 'dan' Failed to parse input file ../sql/share/errmsg.txt":
      
      cp include/m_string.h include/m_string-original.h
      vi include/m_string.h
      /* comment out these ...
      #if defined(HAVE_STPCPY) && !defined(HAVE_mit_thread)
      #define strmov(A,B) stpcpy((A),(B))
      #ifndef stpcpy
      
      extern char *stpcpy(char *, const char *);
      #endif
      #endif
      */
      #then repeat from "make distclean" above
                                
    • do below if there is problem with "item.cc:4367:16: error: expected type-specifier before 'Field_geom'":
      
      cp sql/item.cc sql/item-original.cc
      vi sql/item.cc
      #comment out this ...
      /*
        case MYSQL_TYPE_GEOMETRY:
          return new Field_geom(max_length, maybe_null, name, table,
                                (Field::geometry_type)
                                ((type() == Item::TYPE_HOLDER) ?
                                 ((Item_type_holder *)this)->get_geometry_type() :
                                 ((Item_geometry_func *)this)->get_geometry_type()));
      */
      #then comment out this ...
      /*
        if (item->field_type() == MYSQL_TYPE_GEOMETRY)
          geometry_type= (item->type() == Item::FIELD_ITEM) ?
            ((Item_field *)item)->get_geometry_type() :
            (Field::geometry_type)((Item_geometry_func *)item)->get_geometry_type();
      */
      #then repeat from "make distclean" above
                                
  • (Those are steps i did to get binary for Mysql Server for Android)

 
  • Kontak Kami

    • konsultasiATsolusiprogram.com (replace 'AT' with an '@' sign if you're human; don't replace it if you're a spambot)
    • Software Kasir / Program Toko / Aplikasi POS Solusi Toko versi premium + paket lengkap alat kasir termurah mulai dari 480rb: www.shopee.co.id/solusiprogram.com
    Barcode Reader Scanner termurah untuk kasir
Copyright © 2015-2026
Design by NewWpThemes | Blogger Theme by Lasantha - PremiumBloggerTemplates.com | BTheme.net