summaryrefslogtreecommitdiff
path: root/storage/mroonga/mysql-test/mroonga/wrapper/r/repair_table_no_index_file.result
blob: cca7aee95de8a9da1ff0b1c73c20914f1bbf971c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
CREATE DATABASE repair_test;
USE repair_test;
CREATE TABLE diaries (
id INT PRIMARY KEY AUTO_INCREMENT,
title TEXT,
body TEXT,
FULLTEXT INDEX body_index (body)
) COMMENT = 'engine "innodb"' DEFAULT CHARSET UTF8;
INSERT INTO diaries (title, body) VALUES ("survey", "will start groonga!");
INSERT INTO diaries (title, body) VALUES ("groonga (1)", "starting groonga...");
INSERT INTO diaries (title, body) VALUES ("groonga (2)", "started groonga.");
SELECT * FROM diaries WHERE MATCH(body) AGAINST("starting");
id	title	body
2	groonga (1)	starting groonga...
FLUSH TABLES;
SELECT * FROM diaries WHERE MATCH(body) AGAINST("starting");
ERROR HY000: system call error: No such file or directory: failed to open path: <repair_test.mrn.000010A>
REPAIR TABLE diaries;
Table	Op	Msg_type	Msg_text
repair_test.diaries	repair	status	OK
SELECT * FROM diaries;
id	title	body
1	survey	will start groonga!
2	groonga (1)	starting groonga...
3	groonga (2)	started groonga.
SELECT * FROM diaries WHERE MATCH(body) AGAINST("starting");
id	title	body
2	groonga (1)	starting groonga...
DROP TABLE diaries;
DROP DATABASE repair_test;
USE test;