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 social questions & Answers Engine 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 a 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.

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

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8868471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:16:47+00:00 2026-06-14T17:16:47+00:00

I am using Centos. On a production server, it seems, we accidently uninstalled mysql

  • 0

I am using Centos.
On a production server, it seems, we accidently uninstalled mysql server

We still see folders of our DBs in /var/mysql

What can we do to recover all our data.

Please be sure about what you suggest, this is client production level data.

Thanks

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

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:16:48+00:00Added an answer on June 14, 2026 at 5:16 pm

    Damn. Don’t tell the client 😉

    A pre-step… if the server is still running try to get replication information if you’re server is replicating from somewhere or is a master for someone else. This is a post in of itself, but since I’m guessing your MySQL server is down and you won’t be able to do this I won’t go into it in too much detail.

    1. Do a full copy of ALL contents of /var/mysql somewhere safe and your /etc/my.cnf file (make sure permissions are preserved)
    2. Install the EXACT same version of mysql and verify it’s working
    3. Shut down the new mysql
    4. Backup the default newly installed /var/mysql somewhere in case you want it again
    5. Copy the original /var/mysql files back as well as the original /etc/my.cnf
    6. Pray, Start MySQL, and move along
    7. Setup replication settings if needed

    If you weren’t replicating, step #8 will be look into setting up replication so you can save your butt the next time this happens and someone actually deletes your database files. (happened to me)

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

Sidebar

Related Questions

I'm working on setting up a production server using CentOS 5.3, Apache, and Phusion
I can easily connect to a remote MySQL server using the DBI module in
Just setup a new rails 3.1.3 app using mysql (mysql2 gem) on CentOS 5
I'm using CentOS 4.8 , i386. I would appreciate if any one can help
I'm using CentOS. There are >10M images in one of my folders, which are
I am using centos 6. i want to install php5-dev on my cloud server.
I am using centos Server and have to send the mail to the user
My issue seems peculiar. First i'll explain my setup. I'm using CentOS with Apache
Am using a CentOS 5.3 box as prod server and am trying to get
I get this error on my production server (CentOS 5.4 and php 5.3.5) :

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

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.