LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 15
reinstall mysql


guys,
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?

regards
 
Old 08-21-2009, 12:41 PM   #2
forrestt
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.

HTH

Forrest
 
  


Reply


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 10:07 PM
Uninstall MYSQL completely then reinstall....help! phill79 Linux - Newbie 2 08-31-2008 01:46 PM
reinstall mysql - now apache will not start raninix Linux - Newbie 2 11-23-2004 11:40 AM
completely remove mysql and reinstall siphi Linux - Software 4 04-09-2004 05:27 PM
reinstall mysql or rebuild mysql?? dsiguy Linux - Software 3 07-15-2003 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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