| 1 |
'#--------------------FN_DYNVARS_033_01-------------------------#' |
| 2 |
SET @@global.ft_boolean_syntax = ' -+()<>~*:``&|'; |
| 3 |
'connect (con1,localhost,root,,,,)' |
| 4 |
'connection con1' |
| 5 |
SELECT @@global.ft_boolean_syntax; |
| 6 |
@@global.ft_boolean_syntax |
| 7 |
-+()<>~*:``&| |
| 8 |
SET @@global.ft_boolean_syntax = '+ -><()~*:""&|'; |
| 9 |
'connect (con2,localhost,root,,,,)' |
| 10 |
'connection con2' |
| 11 |
SELECT @@global.ft_boolean_syntax; |
| 12 |
@@global.ft_boolean_syntax |
| 13 |
+ -><()~*:""&| |
| 14 |
'#--------------------FN_DYNVARS_033_02-------------------------#' |
| 15 |
'connection default' |
| 16 |
DROP TABLE IF EXISTS t1; |
| 17 |
CREATE TABLE articles ( |
| 18 |
id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, |
| 19 |
title VARCHAR(200), |
| 20 |
body TEXT, |
| 21 |
FULLTEXT (title,body) |
| 22 |
); |
| 23 |
INSERT INTO articles (title,body) VALUES |
| 24 |
('MySQL Tutorial','DBMS stands for DataBase ...'), |
| 25 |
('How To',''), |
| 26 |
('How To Use MySQL Well','After you went through a ...'), |
| 27 |
('Optimizing MySQL','In this tutorial we will show .... Run command line ...'), |
| 28 |
('1001 MySQL Tricks','1. Never run mysqld as root. 2. ...'), |
| 29 |
('100 Tips for Myisam','1. Myisam is faster than innodb 2. Tricks and Tips for Myisam...'), |
| 30 |
('MySQL vs. YourSQL','In the following database comparison ...'), |
| 31 |
('MySQL Security','When configured properly, MySQL ...'), |
| 32 |
('Database Security','Configuring MySQL for ...'); |
| 33 |
SET @@global.ft_boolean_syntax = DEFAULT; |
| 34 |
SELECT * FROM articles WHERE MATCH (title,body) |
| 35 |
AGAINST ('+mySQL -yourSQL' IN BOOLEAN MODE); |
| 36 |
id title body |
| 37 |
1 MySQL Tutorial DBMS stands for DataBase ... |
| 38 |
3 How To Use MySQL Well After you went through a ... |
| 39 |
4 Optimizing MySQL In this tutorial we will show .... Run command line ... |
| 40 |
5 1001 MySQL Tricks 1. Never run mysqld as root. 2. ... |
| 41 |
8 MySQL Security When configured properly, MySQL ... |
| 42 |
9 Database Security Configuring MySQL for ... |
| 43 |
SELECT * FROM articles WHERE MATCH (title,body) |
| 44 |
AGAINST ('+MySQL +YourSQL' IN BOOLEAN MODE); |
| 45 |
id title body |
| 46 |
7 MySQL vs. YourSQL In the following database comparison ... |
| 47 |
SELECT * FROM articles WHERE MATCH (title,body) |
| 48 |
AGAINST ('MySQL' IN BOOLEAN MODE); |
| 49 |
id title body |
| 50 |
1 MySQL Tutorial DBMS stands for DataBase ... |
| 51 |
3 How To Use MySQL Well After you went through a ... |
| 52 |
4 Optimizing MySQL In this tutorial we will show .... Run command line ... |
| 53 |
5 1001 MySQL Tricks 1. Never run mysqld as root. 2. ... |
| 54 |
7 MySQL vs. YourSQL In the following database comparison ... |
| 55 |
8 MySQL Security When configured properly, MySQL ... |
| 56 |
9 Database Security Configuring MySQL for ... |
| 57 |
SELECT * FROM articles WHERE MATCH (title,body) |
| 58 |
AGAINST ('mysql tutorial dbms' IN BOOLEAN MODE); |
| 59 |
id title body |
| 60 |
1 MySQL Tutorial DBMS stands for DataBase ... |
| 61 |
3 How To Use MySQL Well After you went through a ... |
| 62 |
4 Optimizing MySQL In this tutorial we will show .... Run command line ... |
| 63 |
5 1001 MySQL Tricks 1. Never run mysqld as root. 2. ... |
| 64 |
7 MySQL vs. YourSQL In the following database comparison ... |
| 65 |
8 MySQL Security When configured properly, MySQL ... |
| 66 |
9 Database Security Configuring MySQL for ... |
| 67 |
SELECT id,title,body, (MATCH (title,body) |
| 68 |
AGAINST ('+security configuring' IN BOOLEAN MODE)) AS relevance |
| 69 |
FROM articles WHERE MATCH (title,body) |
| 70 |
AGAINST ('+security configuring' IN BOOLEAN MODE); |
| 71 |
id title body relevance |
| 72 |
8 MySQL Security When configured properly, MySQL ... 1 |
| 73 |
9 Database Security Configuring MySQL for ... 1.3333333730697632 |
| 74 |
SELECT * FROM articles WHERE MATCH (title,body) |
| 75 |
AGAINST ('"faster than"' IN BOOLEAN MODE); |
| 76 |
id title body |
| 77 |
6 100 Tips for Myisam 1. Myisam is faster than innodb 2. Tricks and Tips for Myisam... |
| 78 |
SELECT * FROM articles WHERE MATCH (title,body) |
| 79 |
AGAINST ('+tutorial ~line' IN BOOLEAN MODE); |
| 80 |
id title body |
| 81 |
1 MySQL Tutorial DBMS stands for DataBase ... |
| 82 |
4 Optimizing MySQL In this tutorial we will show .... Run command line ... |
| 83 |
SELECT * FROM articles WHERE MATCH (title,body) |
| 84 |
AGAINST ('10*' IN BOOLEAN MODE); |
| 85 |
id title body |
| 86 |
5 1001 MySQL Tricks 1. Never run mysqld as root. 2. ... |
| 87 |
SELECT id,title,body, (MATCH (title,body) |
| 88 |
AGAINST ('+MySQL +(>show <dbms)' IN BOOLEAN MODE)) AS relevance |
| 89 |
FROM articles WHERE MATCH (title,body) |
| 90 |
AGAINST ('+MySQL +(>show <dbms)' IN BOOLEAN MODE) |
| 91 |
ORDER BY relevance DESC; |
| 92 |
id title body relevance |
| 93 |
4 Optimizing MySQL In this tutorial we will show .... Run command line ... 1.25 |
| 94 |
1 MySQL Tutorial DBMS stands for DataBase ... 0.8333333730697632 |
| 95 |
'---try setting different operators. Default '+ -><()~*:""&|'--' |
| 96 |
SET @@global.ft_boolean_syntax='~ /!@#$%^&*()-'; |
| 97 |
SELECT * FROM articles WHERE MATCH (title,body) |
| 98 |
AGAINST ('~mySQL /yourSQL' IN BOOLEAN MODE); |
| 99 |
id title body |
| 100 |
1 MySQL Tutorial DBMS stands for DataBase ... |
| 101 |
3 How To Use MySQL Well After you went through a ... |
| 102 |
4 Optimizing MySQL In this tutorial we will show .... Run command line ... |
| 103 |
5 1001 MySQL Tricks 1. Never run mysqld as root. 2. ... |
| 104 |
8 MySQL Security When configured properly, MySQL ... |
| 105 |
9 Database Security Configuring MySQL for ... |
| 106 |
SET @@global.ft_boolean_syntax=DEFAULT; |
| 107 |
DROP TABLE articles; |