The *_clean.zip files represent clean data directories created by different versions of MySQL server.
These zips are decompressed and redo log files are modified, in the innodb.log_corruption test.
In order to regenerate these zip files a following procedure needs to be used for each of them:
1. Checkout the proper version of source (mysql-8.0.19-release, mysql-8.0.11-release, mysql-5.7.9-release,
mysql-5.7.8 or mysql-5.6).
2. Configure the build directory for release build, for example:
cd build/8.0.19-build
cmake ../../git/8.0.19-src -DWITH_DEBUG=0 -DWITH_BOOST=../../boost/ -DDOWNLOAD_BOOST=1
3. Build the mysqld, for example:
make -j8 mysqld
4. Run the mysqld to initialize new data directory, prodiving --initialize-insecure option
and (IMPORTANT !) --lower_case_table_names=1, which is important for executions of test
on Windows (datadir needs to be compatible for different OS!). Also, consider passing
--innodb_log_file_size=4M just to minimize the size of datadir after decompression.
An examle for < 8.x:
./sql/mysqld --initialize-insecure --datadir=/tmp/5_7_9 --console --lower_case_table_names=1 --innodb_log_file_size=4M
An example for >= 8.0.11:
./bin/mysqld --initialize-insecure --datadir=/tmp/8_0_11 --console --lower_case_table_names=1 --innodb_log_file_size=4M
5. Start the mysqld on the created data directory, providing --innodb-fast-shutdown=0.
./bin/mysqld --datadir=/tmp/8_0_11 --innodb-fast-shutdown=0 --lower_case_table_names=1 --innodb_log_file_size=4M
(for 5.6, 5.7.8, 5.7.9 use ./sql/mysqld and provide also: --lc-messages-dir=./sql/share/english)
6. Stop the mysqld (pkill mysqld).
7. Compress the contents of the created data directory (for example what is inside /tmp/5_7_9)
and replace the zip file in this directory with the created one (e.g. 5_7_9_clean.zip).
EXCEPTION:
For mysql-5.6, it is more tricky:
In point 3: make -j8 is recommended to build all targets.
In point 4: you need to use ./scripts/mysql_install_db perl script to create data directory, for example:
perl ./scripts/mysql_install_db --cross-bootstrap --user=mysql --builddir=. --srcdir=../../git/8.0 \
--datadir=/tmp/5_6 --lc-messages-dir=./sql/share/english --lower-case-table-names=1 --innodb-log-file-size=4M
Note, the --cross-bootstrap used to generate data directory which should be ok for different hosts.
没有合适的资源?快使用搜索试试~ 我知道了~
linux版mysql-8.0.31
需积分: 5 0 下载量 49 浏览量
2024-09-18
13:13:09
上传
评论
收藏 293.02MB GZ 举报
温馨提示
linux版mysql-8.0.31
资源推荐
资源详情
资源评论
收起资源包目录
linux版mysql-8.0.31 (2000个子文件)
default_mysqld.cnf 3KB
rpl_priv_checks_user_no_dynamic_grants.cnf 3KB
utf8mb4_mysqld.cnf 3KB
default_ndbd.cnf 2KB
default_my.cnf 553B
utf8mb4_my.cnf 507B
default_client.cnf 416B
utf8mb4_client.cnf 372B
rpl_gtid_only_on.cnf 84B
m_i_db_config.cnf 38B
plugin.defs 11KB
README.gcov 655B
temptable_dump.sql.gz 39KB
innodb_gis_undo.inc 294KB
subquery.inc 208KB
subquery_sj.inc 206KB
select.inc 198KB
world.inc 162KB
common-tests.inc 118KB
range.inc 99KB
order_by.inc 80KB
mix2.inc 77KB
join_cache.inc 74KB
ctype_utf8mb4.inc 61KB
handler.inc 50KB
ps_conv.inc 48KB
subquery_mat.inc 48KB
mix1.inc 48KB
ctype_numconv.inc 42KB
tablespace_encrypt_1.inc 42KB
tablespace_encrypt_1.inc 42KB
group_by_fd.inc 38KB
function_defaults.inc 35KB
explain_non_select.inc 31KB
table_encrypt_3.inc 28KB
table_encrypt_5.inc 28KB
schema_read_only.inc 28KB
explain_for_connection_small.inc 28KB
with_non_recursive.inc 27KB
with_recursive.inc 27KB
desc_index.inc 26KB
window_std_var.inc 26KB
icp_tests.inc 26KB
commit.inc 26KB
tablespace_encrypt_7.inc 25KB
ps_query.inc 25KB
tablespace_encrypt_6.inc 24KB
concurrent.inc 24KB
engine_attribute.inc 23KB
index_merge1.inc 23KB
innodb_gis_row_format_basic.inc 20KB
tablespace_encrypt_2.inc 20KB
invisible_columns.inc 19KB
func_in.inc 19KB
rpl_encryption.inc 18KB
index_merge_ror_cpk.inc 18KB
rpl_init.inc 17KB
mrr_tests.inc 16KB
tablespace_encrypt_4.inc 16KB
mysql_ts_alter_encrypt_2.inc 15KB
gtid_utils.inc 15KB
table_encrypt_kill.inc 14KB
index_merge2.inc 14KB
log_encrypt_kill.inc 14KB
gis_generic.inc 14KB
rpl_change_topology.inc 13KB
create_table_tests.inc 13KB
assert_error_log.inc 13KB
resource_group_common.inc 13KB
explain_json.inc 13KB
alter_table_tests.inc 13KB
admin_interface.inc 13KB
index_merge_ror.inc 12KB
show_rpl_debug_info.inc 12KB
mysqlpump_stmt.inc 12KB
mysql_ts_alter_encrypt_1.inc 12KB
mix2_ucs2.inc 12KB
upgrade.inc 12KB
const_folding_int_real.inc 11KB
innodb_pk_extension.inc 11KB
create_json_unpacker.inc 11KB
assert_binlog_events.inc 11KB
rpl_mta_apply_in_order.inc 11KB
ps_out_params_generated.inc 10KB
ps_modify.inc 10KB
invisible_indexes.inc 10KB
const_folding_real_real.inc 10KB
ctype_unicode_latin.inc 10KB
gr_parallel_local_and_remote_transactions.inc 10KB
const_folding_int_int.inc 10KB
mysqlbinlog_raw_mode.inc 10KB
rpl_priv_checks_user_configuration.inc 10KB
rpl_encryption_master_key_rotation_at_startup.inc 10KB
rpl_default_table_encryption.inc 9KB
rpl_change_topology_helper.inc 9KB
database.inc 9KB
cond_filter_queries.inc 9KB
rpl_end.inc 9KB
rpl_receive_event_count.inc 9KB
ctype_uca_test.inc 9KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
粗糙的汉子
- 粉丝: 43
- 资源: 99
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功