唉 真是惭愧 好几天没上来踩点啦 差点忘了如何登录。 前段时间,一同事打来电话说他们的mysql从4.1 upgrade 5.0,出现问题,无法启动。 大体是说ibdata1 ib_logfile0 ib_logfile1错误,俺分析一下,这三个文件是Ibnode用于记录一致性的(大概如是),只有在系统不正常关机时才会用到。偶试验了一下,删除!然后reboot mysql,呵呵 成功。reboot mysql后,mysql会再次重建这三个文件。 偶的Enginee是MyISAM,至于Enginee是IBnode的,...
by berg65123068 - MySQL文档中心 - 2007-07-13 16:59:52 阅读(1304) 回复(0)
我的数据库的表是INNODB类型,我在MY.CNF中开起了INNODB如下: # Uncomment the following if you are using InnoDB tables innodb_data_home_dir = /usr/local/mysql/var/ innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend innodb_log_group_home_dir = /usr/local/mysql/var/ innodb_log_arch_dir = /usr/local/mysql/var/ # You can set .._buffer_pool_size up to 50 - 80 % # of RAM but beware of setting memo...
关键数据,因系统崩溃而丢失,而系统后来连mount都不行,后来请高手将数据寻找到节点dump出来了,但是将ibdata1文件恢复到安装好的系统上后,结果mysql连启动都无法启动,其中.err文件报错如下, 070604 23:42:18 mysqld started 070604 23:42:18 InnoDB: database was not shut down normally! InnoDB: Starting crash recovery. InnoDB: Reading tablespace information from the .ibd files... InnoDB: Restoring possible h...
my.cnf里我没有配置innodb。 但因为数据库里有innodb的表,可能系统按照默认的方式来运行innodb。 怎么通过现在的ibdata1文件来恢复数据呢?
系统内核是2.6.15, mysql版本是5.0.20 现在系统是装在一块256MB的CF卡上,因为担心ibdata1,ib_logfile0,ib_logfile1这几个文件太占空间,而且时间久了,CF卡就放不下了,所以又装了一块硬盘,希望能够把这几个文件直接在这块硬盘上生成,而不是在CF卡上。请问该如何设置?谢谢!! [ 本帖最后由 setsuna 于 2006-9-12 12:47 编辑 ]
今天下午有个哥们问我这个问题。 做了点简单的测试,步骤如下: 1、导出你的INNODB数据到自己的目录。 2、然后停掉mysqlD。 3、删除掉目录下的ib_logfile0,ib_logfile1,ibdata1...等。 4、修改my.cnf。添加比如: innodb_data_file_path = ibdata1:10M;ibdata2:10M;ibdata3:20M;ibdata4:30M:autoextend:max:1000M 原来是: #innodb_data_file_path = ibdata1:10M;ibdata2:10M:autoextend 5、重新启动数据库。 6、导入备份...
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE MicrosoftInternetExplorer4 ...
By nisingh (Open Source Analytics Evangelist) Posted 3/30/2006 In the next post, we'll start doing some hands on. But before that we need to select a data Warehouse Platform. Don't worry, I am not going to nudge you towards some commercial "data Warehouse Solution" here! As promised, it will be open source and free. Since a data Warehouse is essentially a database, we could use any standard data...
mysql data Types TYPE SIZE DESCRIPTION CHAR[Length] Length bytes A fixed-length field from 0 to 255 characters long VARCHAR[Length] String length + 1 bytes A variable-length field from 0 to 255 characters long TINYTEXT String length + 1 bytes A string with a maximum length of 255 characters TEXT String length + 2 bytes A string with a maximum length of 65,535 characters MEDIUMTEXT String length +...
mysql 的bool 对应于oracle的什么类型的字段? create table xx( col1 bool ); insert into xx values(false); insert into xx values(true);