• TechOps

    Need clarity?
    Chat with our experts now

    • Web Hosting SupportWeb Hosting Support
    • Helpdesk Support

      Skilled and professional 24/7 helpdesk support

    • Product Support

      Boost your product support with our expertise

    • Managed ServicesManaged Services
    • Server Management

      Don't let server issues slow you down. Let us manage them for you

    • Server Monitoring

      Safeguard your server health with our comprehensive monitoring solutions

    • Staff AugmentationStaff Augmentation
    • Hire an Admin

      Transform your business operations with our expert administrative support

    • Hire a Team

      Augment your workforce with highly skilled professional from our diverse talent pool

  • CloudOps

    Confused?
    Discuss with our sales team now.

    • Author ProfileAWS
      Well Architected Review
    • Author ProfileFinOps As a Service

      FinOps As a Service

    • Migrate

      Upgrade the journey: Migrate & Modernize seamlessly

    • Modernize

      Effortless CloudOps mastery for seamless cloud management

    • Optimize

      Efficient CloudOps: Boosting performance through optimization

    • Manage

      Simplify compliance complexities with our dedicated service

  • DevOps

    How Supportsages
    is creating an
    impact?

    View Casestudies
    • Author Profile24/7 DevOps As a Service

      Round-the-clock DevOps for uninterrupted efficiency

    • Author ProfileCI/CD Pipeline

      Automated CI/CD pipeline for seamless deployments

    • Author ProfileInfrastructure As a Code

      Crafting infrastructure with ingenious code

    • Author ProfileDevSecOps

      Integrated security in continuous DevOps practices

    • Author ProfileHire DevOps Engineers

      Level up your team with DevOps visionaries

    • Author ProfileConsulting Services

      Navigate success with expert DevOps consulting

  • SecOps

    Expert SecOps Services
    for any Scale

    • Author ProfileVAPT

      Vulnerability Assessment and Penetration Testing

    • Author ProfileSource Code Review

      Ensuring source code security and safe practices to reduce risks

    • Author ProfileSecurity Consultation

      On demand services for improving server security

    • Author ProfileSystem Hardening

      Reduced vulnerability and proactive protection

    • Author ProfileManaged SOC

      Monitors and maintains system security. Quick response on incidents

    • Author ProfileCompliance as a Service

      Regulatory compliance, reduced risk

  • Insights

    Explore our latest
    insights and resources

    Blog

    Explore our latest articles and insights

    Case Studies

    Read about our client success stories

  • Contact Us

  • About
  • Certifications
  • Life at Supportsages
  • Events
  • Contact
  • Careers
  • Blog

  • Dedicated Support Team
  • Quasi-dedicated Support Team
  • Hire a DevOps Engineer
  • Hire a Billing Support Staff
  • Per-ticket Support Plan
  • Managed Services

  • Microsoft Azure Expert
  • AWS Cloud Expert
  • Hire a developer
SS

SupportSages

Bites of wisdom @ work


Copyright © 2008 - 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy

How to Disable Binary Logging in MySQL on Bitnami servers?

Abin Raaj

  • 3 min read
How to Disable Binary Logging in MySQL on Bitnami servers?

Generating audio, please wait...

The binary log is a set of log files that contain information about data modifications made to a MySQL server instance. The log is enabled by starting the server with the –log-bin option. It was introduced in MySQL 3.23.14. There are two types of binary logging:

  • Statement-based logging
  • Row-based logging

In earlier MySQL versions, binary logging was disabled by default but from MySQL 8.0, binary logging is enabled by default. When binary logging is enabled, it may consume more disk space. MySQL database performance and connectivity can be affected by low disk space and/or low available memory. We can disable binary logging by specifying the –skip-log-bin or –disable-log-bin option at startup.

Disabling the binary logging in Bitnami can be done using the steps given below:

  1. Find out the location of the MySQL log file
    The main MySQL log file is located at one of the following locations, on the MySQL database server host:

    For Bitnami installations using Linux system packages: /opt/bitnami/mysql/logs/mysqld.log
    For Self-contained Bitnami installations: /opt/bitnami/mysql/data/mysqld.log
  2. Stop the MySQL server using the command given below:
    sudo /opt/bitnami/ctlscript.sh stop mysql
  3. Edit the MySQL configuration file, depending on your installation type
    For Bitnami installations using Linux system packages: */opt/bitnami/mysql/conf/my.cnf*
    For Self-contained Bitnami installations: */opt/bitnami/mysql/my.cnf*
  4. Add the line `disable_log_bin` below in the [mysqld] configuration block.
    After adding the line, the conf will look like as shown below:

    [mysqld]
    disable_log_bin
    ...
  5. Start the MySQL server
    sudo /opt/bitnami/ctlscript.sh start mysql

Now the binary logging will be disabled and the existing binary log files will be automatically removed after 30 days, which is the default expiry period.

To remove the binary log files manually, run the commands given below in the MySQL command prompt after logging in as MySQL root user.

PURGE BINARY LOGS TO 'bin_log000095';
PURGE BINARY LOGS BEFORE '2021-04-02 22:30:20';

The BEFORE variant’s datetime_expr argument should evaluate to a DATETIME value (a value in ‘YYYY-MM-DD hh:mm:ss’ format). Also, don’t forget to use the appropriate log name (as specified in the server) in place of ‘bin_log000095’.

After running these commands, the binary logs will be removed.

 

We are one of the best Server Management Company in India, Our expert team in web hosting and server management provides professional helpdesk support around the clock with guaranteed response and resolution time.

 

LET US TAKE CARE OF YOUR SERVERS 24/7/365.

Get rid of all the hassles of server management.

CONTACT US WITH YOUR REQUIREMENTS!

  • Linux

Looking for AWS Experts?

We provide top-of-the-line custom AWS setup services tailored to your needs.

How to Create a VM in Proxmox and rebuild it with another OS

How to Create a VM in Proxmox and rebuild it with another OS
  • Linux
logo

How to Fix a Mixed Content Error in WordPress?

How to Fix a Mixed Content Error in WordPress?
  • WordPress
logo

How to Fix the Mixed Content Error in WordPress?

How to Fix the Mixed Content Error in WordPress?
  • WordPress
logo

How to use Cyberduck to transfer files via FTP?

How to use Cyberduck to transfer files via FTP?
  • Linux
logo
How to Disable Binary Logging in MySQL on Bitnami servers?
Posts by Abin Raaj

Abin Raaj is currently working as System Engineer at SupportSages. He is well-versed in Linux and server management and interested in new technologies. The dedication and work-ethic he shows in the workplace combined with his ability to build good relationships and decision-making skill has earned him the role of Team Leader. He is proficient in WordPress and loves working with WordPress websites. In his free time, Abin enjoys playing football, badminton, and discovering new music.