Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our W3Make Forum to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now
You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Sign InSign Up

Forum By W3make

Forum By W3make Logo Forum By W3make Logo

Forum By W3make Navigation

  • Home
  • About Us
  • Blog
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Questions Feed
  • Blog
  • Contact Us
Home/ Questions/Q 211
Next
In Process
Jyoti Garg
  • 0
Jyoti GargBegginer
Asked: November 10, 20222022-11-10T11:06:42+05:30 2022-11-10T11:06:42+05:30In: SQL

How to remove binlog.###### files in /var/lib/mysql directory?

  • 0

The /var/lib/mysql directory contains the binlog.###### files, which are used by MySQL for logging purposes. If you want to clean up these files, simply run following commands.

mysql -uroot -ppassword

PURGE BINARY LOGS BEFORE '2022-10-21 22:00:00';

For more details visit “How to Fix “(Errcode: 28 – No space left on device)” – MySQL won’t start“.

developersLinux
  • 1 1 Answer
  • 42 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. TechRoast Begginer
    2023-06-15T13:12:58+05:30Added an answer on June 15, 2023 at 1:12 pm

    To remove the binlog.###### files in the /var/lib/mysql directory, you can follow these steps:

    1. Open a terminal or command prompt.
    2. Login to MySQL as the root user by running the following command:
    “`
    mysql -uroot -ppassword
    “`
    Replace “password” with the actual password for the root user.
    3. Once you are logged in to MySQL, run the following command to purge the binary logs before a specific date and time:
    “`
    PURGE BINARY LOGS BEFORE ‘2022-10-21 22:00:00’;
    “`
    Replace the date and time (‘2022-10-21 22:00:00’) with the desired cutoff point for purging the binary logs.
    4. After executing the command, MySQL will remove the binlog files before the specified date and time.
    5. You can then exit MySQL by running the command:
    “`
    exit
    “`

    Please note that removing binlog files is irreversible, and it may affect your ability to perform point-in-time recovery or replication. Make sure you have a backup of your data and understand the implications before purging the binary logs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question

Stats

  • Questions 3k
  • Answers 2k
  • Best Answers 34
  • Users 5k
  • Popular
  • Answers
  • Mohammed aleem hasan

    What programming language is used for Android development?

    • 65 Answers
  • Manichandana

    Is this mandatory to write css code in making a ...

    • 58 Answers
  • vishakha_1713

    How to decide whether to use DELETE statement or DROP ...

    • 46 Answers
  • Jova0731
    Jova0731 added an answer Before I logged in I checked out Big Ass Sex… October 8, 2025 at 11:41 am
  • Jova0731
    Jova0731 added an answer If you're new to buying a custom sex doll, you… July 31, 2025 at 8:41 am
  • Jova0731
    Jova0731 added an answer Some of us with dark hearts want to design other… July 5, 2025 at 1:56 pm

Related Questions

  • Middela Sravani

    What is the difference between insert and update command

    • 0 Answers
  • Harshini

    Mysql

    • 0 Answers
  • M.Venkata Sai

    Wordpress???

    • 1 Answer

Top Members

saningh

saningh

  • 5 Questions
  • 116 Points
Pundit
Vishnu M

Vishnu M

  • 2 Questions
  • 96 Points
Teacher
akshatt25

akshatt25

  • 12 Questions
  • 68 Points
Teacher

Trending Tags

#css #html #questions 3d printing ai android android development android studio answer api app development c++ coding data Database developer development error flutter hacking help ios java javascript kotlin machine learning ml performance php plugin plugins poll programming python question security seo social media sql technology theme web web development website WordPress word press wordpress development wordpressdevelopment wordpress error wordpress errors

Explore

  • Recent Questions
  • Most Answered
  • Answers
  • Most Visited
  • Most Voted
  • No Answers
  • Feed
  • Favorites Questions

Footer

W3make forum is a social questions & Answers platform which will help you establis your community and connect with other people.

Legal Stuff

  • Privacy Policy
  • Terms and Conditions

Help

  • Questions Feed
  • Blog
  • Contact Us

Follow

© 2023 W3make.com | All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.