2015-10-27 8 views
1

Я установил новый экземпляр на MySQL 5.7.6 на ноутбуке Windows 7.Как включить FEDERATED Engine в MySQL?

Мне нужно включить FEDERATED Engine на нем.

в разделе [туздЫ] Я добавил FEDERATED

, но когда я пытаюсь запустить сервер я получаю сообщение об ошибке.

Вот что журналы ошибок MySQL показывают, что --FEDERATED неизвестный параметр

записку от MySQL documentation

Чтобы включить двигатель хранения FEDERATED если вы строите MySQL из источника, вызовите CMake с -DWITH_FEDERATED_STORAGE_ENGINE.

Как сделать CMake с -DWITH_FEDERATED_STORAGE_ENGIN на окнах?

Здесь ошибка из файлов ошибок MySQL

2015-10-27T04:15:47.031678Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 
2015-10-27T04:15:47.031678Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. 
2015-10-27T04:15:47.034678Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe (mysqld 5.7.9-log) starting as process 5780 ... 
2015-10-27T04:15:47.046679Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 
2015-10-27T04:15:47.047679Z 0 [Note] InnoDB: Uses event mutexes 
2015-10-27T04:15:47.048680Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier 
2015-10-27T04:15:47.049680Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3 
2015-10-27T04:15:47.049680Z 0 [Note] InnoDB: Adjusting innodb_buffer_pool_instances from 8 to 1 since innodb_buffer_pool_size is less than 1024 MiB 
2015-10-27T04:15:47.051680Z 0 [Note] InnoDB: Number of pools: 1 
2015-10-27T04:15:47.052680Z 0 [Note] InnoDB: Not using CPU crc32 instructions 
2015-10-27T04:15:47.089684Z 0 [Note] InnoDB: Initializing buffer pool, total size = 8M, instances = 1, chunk size = 8M 
2015-10-27T04:15:47.092684Z 0 [Note] InnoDB: Completed initialization of buffer pool 
2015-10-27T04:15:47.220697Z 0 [Note] InnoDB: Highest supported file format is Barracuda. 
2015-10-27T04:15:47.373712Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables 
2015-10-27T04:15:47.374712Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 
2015-10-27T04:15:47.533728Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB. 
2015-10-27T04:15:47.541729Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active. 
2015-10-27T04:15:47.543729Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active. 
2015-10-27T04:15:47.546729Z 0 [Note] InnoDB: Waiting for purge to start 
2015-10-27T04:15:47.597734Z 0 [Note] InnoDB: 5.7.9 started; log sequence number 2472339 
2015-10-27T04:15:47.600735Z 0 [Note] InnoDB: Loading buffer pool(s) from C:\ProgramData\MySQL\MySQL Server 5.7\Data\ib_buffer_pool 
2015-10-27T04:15:47.600735Z 0 [Note] Plugin 'FEDERATED' is disabled. 
2015-10-27T04:15:47.600735Z 0 [Note] InnoDB: not started 
2015-10-27T04:15:47.616736Z 0 [ERROR] unknown option '--FEDERATED' 
2015-10-27T04:15:47.617736Z 0 [ERROR] Aborting 

2015-10-27T04:15:47.618737Z 0 [Note] Binlog end 
2015-10-27T04:15:47.620737Z 0 [Note] Shutting down plugin 'ngram' 
2015-10-27T04:15:47.621737Z 0 [Note] Shutting down plugin 'partition' 
2015-10-27T04:15:47.623737Z 0 [Note] Shutting down plugin 'BLACKHOLE' 
2015-10-27T04:15:47.624737Z 0 [Note] Shutting down plugin 'ARCHIVE' 
2015-10-27T04:15:47.625737Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA' 
2015-10-27T04:15:47.627737Z 0 [Note] Shutting down plugin 'MRG_MYISAM' 
2015-10-27T04:15:47.629738Z 0 [Note] Shutting down plugin 'MyISAM' 
2015-10-27T04:15:47.630738Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL' 
2015-10-27T04:15:47.631738Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES' 
2015-10-27T04:15:47.632738Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES' 
2015-10-27T04:15:47.635738Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS' 
2015-10-27T04:15:47.636738Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN' 
2015-10-27T04:15:47.637738Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS' 
2015-10-27T04:15:47.638739Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS' 
2015-10-27T04:15:47.639739Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES' 
2015-10-27T04:15:47.640739Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS' 
2015-10-27T04:15:47.641739Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES' 
2015-10-27T04:15:47.642739Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE' 
2015-10-27T04:15:47.643739Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE' 
2015-10-27T04:15:47.644739Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG' 
2015-10-27T04:15:47.645739Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED' 
2015-10-27T04:15:47.646739Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED' 
2015-10-27T04:15:47.647739Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD' 
2015-10-27T04:15:47.647739Z 0 [Note] InnoDB: Buffer pool(s) load completed at 151026 21:15:47 
2015-10-27T04:15:47.648740Z 0 [Note] Shutting down plugin 'INNODB_METRICS' 
2015-10-27T04:15:47.649740Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO' 
2015-10-27T04:15:47.650740Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS' 
2015-10-27T04:15:47.651740Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU' 
2015-10-27T04:15:47.652740Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE' 
2015-10-27T04:15:47.653740Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET' 
2015-10-27T04:15:47.654740Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX' 
2015-10-27T04:15:47.654740Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET' 
2015-10-27T04:15:47.655740Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM' 
2015-10-27T04:15:47.656740Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET' 
2015-10-27T04:15:47.657740Z 0 [Note] Shutting down plugin 'INNODB_CMP' 
2015-10-27T04:15:47.658741Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS' 
2015-10-27T04:15:47.658741Z 0 [Note] Shutting down plugin 'INNODB_LOCKS' 
2015-10-27T04:15:47.659741Z 0 [Note] Shutting down plugin 'INNODB_TRX' 
2015-10-27T04:15:47.660741Z 0 [Note] Shutting down plugin 'InnoDB' 
2015-10-27T04:15:47.661741Z 0 [Note] InnoDB: FTS optimize thread exiting. 
2015-10-27T04:15:47.662741Z 0 [Note] InnoDB: Starting shutdown... 
2015-10-27T04:15:47.763751Z 0 [Note] InnoDB: Dumping buffer pool(s) to C:\ProgramData\MySQL\MySQL Server 5.7\Data\ib_buffer_pool 
2015-10-27T04:15:47.779753Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 151026 21:15:47 
2015-10-27T04:15:49.017876Z 0 [Note] InnoDB: Shutdown completed; log sequence number 2472358 
2015-10-27T04:15:49.018877Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 
2015-10-27T04:15:49.019877Z 0 [Note] Shutting down plugin 'MEMORY' 
2015-10-27T04:15:49.020877Z 0 [Note] Shutting down plugin 'CSV' 
2015-10-27T04:15:49.020877Z 0 [Note] Shutting down plugin 'sha256_password' 
2015-10-27T04:15:49.021877Z 0 [Note] Shutting down plugin 'mysql_native_password' 
2015-10-27T04:15:49.022877Z 0 [Note] Shutting down plugin 'binlog' 
2015-10-27T04:15:49.023877Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe: Shutdown complete 
+0

является '--skip-grant-tables', указанным в вашем конфиге? –

+0

№. Я также попытался установить новый экземпляр mysql 5.7.6, и при попытке включить его я получаю ту же ошибку. Нужно ли загружать другой файл и помещать его в папку хранения? –

+0

Как вы называете cmake? Через cmd или с cmake-gui? Если вы вызываете это напрямую, просто добавьте -D .. непосредственно после CMake. С помощью графического интерфейса вы можете просто добавить его. – usr1234567

ответ

1

Я понял это.

FEDERATED должно быть federated в файле my.ini.

0

Недавно я помочь моей напарницы, чтобы позволить этому,

Он использовал WAMP в Windows 7,

Вы должны заботиться с my.ini файлом.

вы, вероятно, можно увидеть следующую строку:

# The MySQL server 
[wampmysqld] 
port  = 3306 
socket  = /tmp/mysql.sock 
key_buffer_size = 16M 
max_allowed_packet = 1M 
sort_buffer_size = 512K 
net_buffer_length = 8K 

Вы должны иметь, чтобы добавить это выше, чтобы включить federeted:

# Here follows entries for some specific programs 
[mysqld] 
federated 

Вы конечный результат может быть что-то вроде этого:

# Here follows entries for some specific programs 
    [mysqld] 
    federated 
    # The MySQL server 
    [wampmysqld] 
    port  = 3306 
    socket  = /tmp/mysql.sock 
    key_buffer_size = 16M 
    max_allowed_packet = 1M 
    sort_buffer_size = 512K 
    net_buffer_length = 8K 
    read_buffer_size = 256K 
    read_rnd_buffer_size = 512K 
    myisam_sort_buffer_size = 8M 
    basedir=c:/wamp/bin/mysql/mysql5.6.17 
    log-error=c:/wamp/logs/mysql.log 
    datadir=c:/wamp/bin/mysql/mysql5.6.17/data 

Наконец, вы должны перезапустить свои службы.

Я надеюсь, что эта помощь.