在舞陽(yáng)等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供成都做網(wǎng)站、成都網(wǎng)站設(shè)計(jì) 網(wǎng)站設(shè)計(jì)制作按需網(wǎng)站設(shè)計(jì),公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站制作,成都全網(wǎng)營(yíng)銷推廣,成都外貿(mào)網(wǎng)站建設(shè)公司,舞陽(yáng)網(wǎng)站建設(shè)費(fèi)用合理。>一、系統(tǒng)表空間擴(kuò)容方法
方法1:在innodb_data_file_path參數(shù)后面加上autoextend參數(shù)
innodb_data_file_path=ibdata1:12M:autoextend
方法2:在innodb_data_file_path參數(shù)后面加上一個(gè)新的數(shù)據(jù)文件
innodb_data_file_path = /ibdata/ibdata1:988M;/disk2/ibdata2:50M:autoextend
二、操作步驟
1. 修改參數(shù)innodb_data_file_path
2. 關(guān)閉數(shù)據(jù)庫(kù),shutdown
3. 啟動(dòng)數(shù)據(jù)庫(kù),mysqld_safe &
4. 驗(yàn)證參數(shù)是否生效show variables like 'innodb_data_file_path';
三、案例
1. 查看默認(rèn)參數(shù)
mysql> show variables like 'innodb_data%';
+-----------------------+------------------------+
| Variable_name | Value |
+-----------------------+------------------------+
| innodb_data_file_path | ibdata1:12M:autoextend |
| innodb_data_home_dir | /zxdata/my3311/data |
+-----------------------+------------------------+
2 rows in set (0.00 sec)
2.關(guān)閉數(shù)據(jù)庫(kù)
mysql>shutdown;
3.修改my.cnf參數(shù)文件
[root@roidb1 ~]# grep "path" /zxdata/my3311/etc/my.cnf
innodb_data_file_path = ibdata1:12M;ibdata2:50M:autoextend
4.啟動(dòng)數(shù)據(jù)庫(kù)
#/usr/local/mysql/bin/mysqld_safe --defaults-file=/zxdata/my3311/etc/my.cnf &
5.驗(yàn)證是否生效
mysql> show variables like 'innodb_data%';
+-----------------------+------------------------------------+
| Variable_name | Value |
+-----------------------+------------------------------------+
| innodb_data_file_path | ibdata1:12M;ibdata2:50M:autoextend |
| innodb_data_home_dir | /zxdata/my3311/data |
+-----------------------+------------------------------------+
2 rows in set (0.01 sec)