ANS Documentation

Improve This Doc
  • Cloud
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
  • Security
    • DDoSX®
    • Web Application Firewall
    • Threat Monitoring and Threat Response
      • General Information and FAQs
      • How does it work?
      • System Requirements
      • Getting Started
      • Installing on a UKFast hosted server
      • Installing on a non-UKFast hosted server
      • PCI DSS Compliance
      • Alerts and rulesets
      • Attack Ruleset
      • High Level Alerts Explained
      • Alert Remediation Tips
      • Common Attacks
      • Databases
      • Exploits
      • File Monitoring (FIM)
      • Malware
      • Service Specific Alerts
      • System
      • Windows
      • Scans and Reconnaissance
    • McAfee Antivirus
    • Vulnerability Scans
    • ANS MDR
    • Keeping Magento secure
    • Keeping WordPress secure
    • Brute Force Attacks
    • CryptoLocker
    • Dirty COW
    • The Logjam attack
    • Meltdown and Spectre
    • Memcached security concerns and reflection/amplification DDoS attacks
    • Wana Decryptor / Wana Decrypt0r 2.0 / WannaCry
    • Log4J Vulnerability
    • Polkit Security Vulnerability CVE-2021-4034
    • CVE-2022-0847 - Dirty Pipe Vulnerability
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
  • Webcelerator
  • MyUKFast
  • Home >
  • Security >
  • Threat Monitoring and Threat Response >
  • High Level Alerts Explained >
  • MySQL

MySQL¶

MySQL fatal error.¶

What is a MySQL Fatal Error?

A MySQL fatal error generally comes about through a malformed SQL search query, which will error out the SQL engine. This will mean that the changes the command was trying to do will not happen.

This can come about through poorly written SQL queries or the website makes a lot of connections to the database, however, this will generally leave a site feature not working, and is caught in development and testing. More commonly, the malformed query may come from the user of a website by the use of a controlled character, or an attempt at a deliberate SQL injection attack.

Attackers may attempt to SQL Inject to discover data about how the underlying database works. If they can get this information they can attempt to trick it into giving actual information in your database, which would be classed as a data breach, especially if they can get a hold of sensitive or personal information.

How do I stop MySQL Fatal Errors?

Many different websites try various techniques to try and mitigate this. Escaping Strings is by far the most popular. Making sure that any inputs on your website are properly escaped, so that the user cannot input any control characters into a search box or a user input field. Escaping strings is the act of encoding the control characters so that they do not register as these characters to database engines. Examples of control characters are semi-colons ; and quotes " ``.

MySQL shutdown message.¶

What is a Database Shutdown Message?

When MySQL receives this message it will try to shut down the SQL databases. This means that MySQL will refuse any new connections to the database, and shall wait for all current clients to disconnect. Sometimes this can take a while, and sometimes this cannot. You must disconnect all clients before you can restart the database.

MySQL can receive a shutdown message mainly from its server through its daemon. The daemon will not perform a graceful shutdown on its own, so this command is triggered.

What do can I do about this?

Usually, this command is intentionally issued to the MySQL server. If it is not, then you should check that you have nothing automated which is attempting to restart the service. If there is, disable it for the time being. If there is not, take a look at the recent logins with the Linux command last. This may give you more insight into who may have stopped the MySQL server.

Next Article > PostgreSQL

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ