简体   繁体   English

MYSQL最大行数限制

[英]MYSQL Max row limit

I'm stuck on mysql query which doesn't want to get result more than ~2800 rows (more or less). 我卡在mysql查询中,它不希望获得超过2800行(或多或少)的结果。

I get connected to the db remotely: 我远程连接到数据库:

$bdd = new PDO('mysql://myserver;port=3306;dbname=mydb;charset=utf8', 'my_user', 'my_pass',
            array(
                PDO::ATTR_TIMEOUT => "100",
                PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
                PDO::ATTR_EMULATE_PREPARES => true
            )); 
        ini_set('mysql.connect_timeout', 30);
        ini_set('default_socket_timeout', 30);
        ini_set('max_execution_time', 30);

Here is what the query looks like : 这是查询的样子:

$result = $bdd->query("SELECT * FROM CONTACT WHERE name LIKE 'whatever' OR phone LIKE 'whatever2' OR phone LIKE 'whatever3'... ");

I got results untill the ~2800 row, it means the query get stopped at the 2800 row then doesn't care of the rest of the row even if they match the query. 我直到约2800行才得到结果,这意味着查询在2800行停止,然后不在乎该行的其余部分,即使它们与查询匹配。

Please help, THANK YOU SO MUCH! 请帮助,非常感谢!

Thank you for your comments! 谢谢您的意见! The problem was that I wasn't at the good database.. I have duplicated it and was pointing on the wrong one, sorry for my newbeness =) 问题是我不是在好的数据库上。我已将其复制并指向错误的数据库,对不起我,newbeness =)

There is no row limitin at the good one =) 好的行没有行限制=)

Thank you again! 再次感谢你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM