I have lots of 5+gb .sql files and I need to be able to run query on all of them (that's what my client needs). However, I was not able to figure out the way to do it. The query is simple: select column where keyword equals to specified word.
I saw some suggestions, that I should import db to mysql phpmyadmin server, but the file is too big.
Another solution I found was using pdo:
$db = new PDO($dsn, $user, $password);
$sql = file_get_contents('path/to/.sql');
$qr = $db->exec($sql);
But the same problem occured - files are too big.
How do I make this thing happen?