top of page

How to Access MySQL Error Logs?

  • Writer: Jha Chandan
    Jha Chandan
  • Feb 25, 2023
  • 1 min read

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
ree

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!
Muse a little, learn a lot.✌️

 

Here you’ll find practical SQL queries, troubleshooting tips with fixes, and step-by-step guidance for common database activities. And of course, don’t forget to pause and muse with us along the way. 🙂
 

I share insights on:​​

  • Db2

  • MySQL

  • SQL Server

  • Linux/UNIX/AIX

  • HTML …and more to come!
     

Whether you’re just starting out or looking to sharpen your DBA skills, there’s something here for you.

Let the posts
come to you.

Thanks for submitting!

  • Instagram
  • Facebook
  • X
2020-2025 © TechWithJC

Subscribe to Our Newsletter

Thanks for submitting!

  • Facebook
  • Instagram
  • X

2020-2025 © TechWithJC

bottom of page