Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-21-2009, 01:25 PM   #1
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
reinstall mysql

I have no access to my mysql databases through mysql clients.
I am running mysql server in a debian box. Is there a way to reinstall mysql in a different machine and copy databases from old machine files to the new one in order to get a exactly copy of the old installation?

Old 08-21-2009, 01:41 PM   #2
Senior Member
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
If you stop the MySQL server, tar up the directory holding the database files and copy it to your new server you should be able to just untar it in the proper location (differs depending on how you have it set up) and start the server on the new system. However, if you can't access it on the original server due to user/password issues, you won't be able to on the new server without fixing those issues as well.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql failed to start. reinstall failed either!!! gavin2u Linux - Server 10 11-13-2008 11:07 PM
Uninstall MYSQL completely then! phill79 Linux - Newbie 2 08-31-2008 02:46 PM
reinstall mysql - now apache will not start raninix Linux - Newbie 2 11-23-2004 12:40 PM
completely remove mysql and reinstall siphi Linux - Software 4 04-09-2004 06:27 PM
reinstall mysql or rebuild mysql?? dsiguy Linux - Software 3 07-15-2003 09:11 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration