In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
How to add data files in the MySQL8.0.18 database, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
Background:
Centos7.4
Mysql8.0.18
View data catalog
[root@centos1 data] # ls-lh-rw-r- 1 mysql mysql 12m Feb 12 16:23 ibdata1
Modify the configuration file
My.cnf
# innodb_data_home_dir = / data/mysql3308/innodb_tsinnodb_data_home_dir = innodb_data_file_path = ibdata1:12M;ibdata2:12M:autoextend
* this setting with empty innodb_data_home_dir = directory can configure data files in different paths, otherwise it can only be configured in the same directory * the original data file size needs to be set to 12m exactly according to the size viewed by ls-lh; * only the last file directory can be set to autoextend restart view, and the data directory has been added successfully.
Mysql > show variables like'% innodb_data%' +-+ | Variable_name | Value | + -- + | innodb_data_file_path | ibdata1:12M Ibdata2:12M:autoextend | | innodb_data_home_dir | | +-+ is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.