Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix database checker PDO execute statement #6

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

norkus256
Copy link

PDO exec function is not supported for queries that return results.

https://www.php.net/manual/en/pdo.exec.php#61702

It does not cause an error, but notes in MySQL log file

[Note] Aborted connection 3 to db: 'my_database' user: 'root' host: 'localhost' (Got an error reading communication packets)

You can check that aborted clients count is always increasing

SHOW STATUS LIKE '%Aborted_clients%';

@gedasli gedasli merged commit f213818 into NordSecurity:master Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants