Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  Database  >  Steps to Access MySQL Error Logs
Top Scroll

Steps to Access MySQL Error Logs

 2 min

Many times, the root cause of crashes, slowdowns, or other unexpected behavior in MySQL can be checked by analyzing its error logs. The default location for the MySQL on Ubuntu systems is /var/log/mysql/error.log. In several cases, the error logs are most easily read with the lessprogram, which is a command line utility that enables you to see the files but not edit them:

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

If MySQL is behaving differently, you can get more information about the trouble’s source by executing this command and identifying the error based on the log’s contents.

 

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.