• DevOps
    Case Study

    How we built a resilient multi-account, multi-cloud solution for a Health Tech service provider!

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How we built a scalable Odoo solution for a Travel Tech service provider!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

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

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    How we built a scalable Odoo solution for TravelTech service provider!

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Contact Us

Connect with us!


LinkedInFacebookXInstagramYouTube

aws partneraws advanced partner
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy
How to Disable Binary Logging in MySQL on Bitnami servers?

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

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

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.