MySQL 1105: Unknown error.

  1. Check the MySQL server's error log for more specific details about the error. This can usually be found in the data directory of the MySQL server installation or configured path. Use the command:


tail -f /var/log/mysql/error.log
Adjust the path based on your server configuration.

  1. Verify that the MySQL server is running and accessible. Use the command:


systemctl status mysql
or for non-systemd systems:
service mysql status

  1. Check the current status of MySQL server connections and system variables that could reveal issues, using MySQL client commands:


SHOW STATUS LIKE 'Threads_connected';
SHOW VARIABLES LIKE 'max_connections';


  1. If possible, restart the MySQL server to reset its state, which might resolve transient issues. Use the command:


systemctl restart mysql
or for non-systemd systems:
service mysql restart
Be cautious with this step as it will temporarily disrupt database access.

  1. Verify the disk space and inodes usage where MySQL data is stored, to ensure there is no disk full issue causing write failures. Use commands:


df -h
df -i


  1. Inspect open files limit for the MySQL process, which might be reached and causing errors. Check and adjust if necessary with:


SHOW VARIABLES LIKE 'openfileslimit';
And on the system level:
ulimit -Sn
ulimit -Hn


  1. If running a specific query resulted in the error, try running `EXPLAIN` on the query to check if there's an issue with how the query is executed:


EXPLAIN yourproblematicquery_here;

  1. Check for any recent changes in MySQL configurations (`my.cnf` or `my.ini` file) that might have caused the issue. Revert if necessary.



Perform these actions sequentially to diagnose and potentially resolve the issue. If the problem persists after these steps, consider seeking help from a MySQL community or a professional.

Master

MySQL

in Minutes — Grab the Ultimate Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Real-world configs/examples
Handy troubleshooting shortcuts
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

MySQL

Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

MORE ISSUES

Made with ❤️ in Bangalore & San Francisco 🏢

Doctor Droid