编译安装 mysql(下面是编译参数)
/usr/local/bin/cmake . -DCMAKE_INSTALL_PREFIX=/application/mysql-5.6.36
-DMYSQL_DATADIR=/application/mysql-5.6.36/data
-DMYSQL_UNIX_ADDR=/application/mysql-5.6.36/tmp/mysql.sock
-DDEFAULT_CHARSET=utf8
-DDEFAULT_COLLATION=utf8_general_ci
-DEXTRA_CHARSETS=gbk,gb2312,utf8,ascii
-DENABLED_LOCAL_INFILE=ON
-DWITH_INNOBASE_STORAGE_ENGINE=1
-DWITH_FEDERATED_STORAGE_ENGINE=1
-DWITH_BLACKHOLE_STORAGE_ENGINE=1
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
-DWITHOUT_PARTITION_STORAGE_ENGINE=1
-DWITH_FAST_MUTEXES=1
-DWITH_ZLIB=bundled
-DENABLED_LOCAL_INFILE=1
-DWITH_READLINE=1
-DWITH_EMBEDDED_SERVER=1
-DWITH_DEBUG=0
编译时,报错如下:
make[2]: * [storage/perfschema/unittest/pfs_connect_attr-t] Error 1
make[1]: * [storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/all] Error 2
一开始安装到86%报这错,加了下面的配置后,通过。
-DWITH_EMBEDDED_SERVER=0 -DWITH_PARTITION_STORAGE_ENGINE=0