Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two Error. How to do? #42

Closed
jay763190097 opened this issue Feb 21, 2017 · 1 comment
Closed

Two Error. How to do? #42

jay763190097 opened this issue Feb 21, 2017 · 1 comment

Comments

@jay763190097
Copy link

jay763190097 commented Feb 21, 2017

Linking CXX static library libsql.a
[ 93%] Built target sql
make: *** [all] Error 2

make[2]: *** [libmysqld/CMakeFiles/sql_embedded.dir/__/sql/semisync_slave.cc.o] Error 1
make[1]: *** [libmysqld/CMakeFiles/sql_embedded.dir/all] Error 2
make: *** [all] Error 2

@jay763190097
Copy link
Author

jay763190097 commented Feb 21, 2017

这个是cmake参数错误
正确的提供给大家参考:

  cmake . \
         -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \  
         -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock \  
         -DWITH_EMBEDDED_SERVER=0 \
         -DDEFAULT_CHARSET=utf8 \  
         -DDEFAULT_COLLATION=utf8_general_ci \
         -DWITH_INNOBASE_STORAGE_ENGINE=1 \  
         -DWITH_ARCHIVE_STORAGE_ENGINE=1 \ 
         -DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
         -DMYSQL_DATADIR=/data/mysqldb \
         -DMYSQL_TCP_PORT=3306 \  
         -DENABLE_DOWNLOADS=1  

lehoon pushed a commit to lehoon/AliSQL that referenced this issue Mar 1, 2017
… table

InnoDB auto_increment value is not persistent and can lead to some
values reused, as described by official bug #199.

This patch fix the problem by writing the last used AUTO_INCREMENT
to the root page of the clustered index, using the PAGE_MAX_TRX_ID
field, which is unused for root page.

Two InnoDB variables are introduced to control this persistent behaviour:
- innodb_autoinc_persistent
  This persistent behaviour is enabled or not.

- innodb_autoinc_persistent_interval
  The interval of persist max auto_increment value.
@fungo fungo closed this as completed Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants