Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/60.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
live server中mysql中的匹配不起作用_Mysql_Sql_Phpmyadmin - Fatal编程技术网

live server中mysql中的匹配不起作用

live server中mysql中的匹配不起作用,mysql,sql,phpmyadmin,Mysql,Sql,Phpmyadmin,此查询在localhost上运行正常,但在live server上运行时显示错误: MySQL返回一个空的结果集(即零行)。(查询耗时0.0003秒) 你为什么不试着像比赛一样 Select * from admintasks where MATCH (User_name) AGAINST('murali'); 这: 是当查询的结果集不包含任何值时的输出。您的查询工作正常,可能您需要一些更好的where子句来获取数据 这不是错误。请在live server中检查ft_min_word_leng

此查询在localhost上运行正常,但在live server上运行时显示错误:

MySQL返回一个空的结果集(即零行)。(查询耗时0.0003秒)


你为什么不试着像比赛一样

Select * from admintasks where MATCH (User_name) AGAINST('murali');
这:


是当查询的结果集不包含任何值时的输出。您的查询工作正常,可能您需要一些更好的
where
子句来获取数据

这不是错误。请在live server中检查ft_min_word_length中的值。在debian中,它通常位于/etc/mysql/my.cnf中,这显然不是错误消息。您至少缺少:1)MySQL版本2)
CREATE TABLE
code(剥离不相关的列,包括引擎、全文索引定义和排序规则)3)数据描述:行总数、预期匹配数、,可能是一个示例匹配。为什么不使用“Like”而不是“match”?实际上我需要从多个用逗号分隔的值中获取一个值,
Select * from admintasks where User_name LIKE '%murali%';
MySQL returned an empty result set (i.e. zero rows). (Query took 0.0003 sec)