top of page

How to Access MySQL Error Logs?

In this blogpost you will see the root cause of slowdowns, crashes, or other unexpected behaviour in MySQL which can be determined by analysing its error logs. I'm using Ubuntu system on which the default location for the MySQL is /var/log/mysql/error.log. These error logs are most easily read with the less/more program, a command line utility that allows you to view files but not edit them:


Command:

sudo less /var/log/mysql/error.log
sudo more /var/log/mysql/error.log

If MySQL isn’t behaving as expected, you can obtain more information about the source of the trouble by running this command and diagnosing the error based on the log’s contents.


That's all in this post. If you liked this blog and interested in knowing more about MySQL, Please Like, Follow, Share & Subscribe to imjhachandan.com

Comments


jc_logo.png

Hi, thanks for stopping by!

Welcome! to my “Muse & Learn” blog.

This website will help you to learn useful queries/SQL, Tips to troubleshoot problem and their remediation, perform DB related activities etc... and don't forget to muse with us :)....

It cover few useful information on below topics :

 

MySQL, SQL Server, DB2, Linux/UNIX/AIX, HTML ....

Let the posts
come to you.

Thanks for submitting!

  • Instagram
  • Facebook
  • Twitter
© 2023 By ImJhaChandan
bottom of page