Solved

MySQL & Open Remote Directory

Posted on 2012-04-03
1
152 Views
Last Modified: 2012-04-19
I have installed MySQL on my local Windows computer.  It is working and I can access the sample databases.  I also have another MySQL data folder that contains copies of my production databases.  How do I open this "second" data folder?  I can copy it locally.
0
Comment
Question by:deklinm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 24

Accepted Solution

by:
johanntagle earned 500 total points
ID: 37803793
You can only open one data directory at a time.  to switch to the new directory, shut down mysql, Find your my.ini file, open it and change the data-dir entry to the new location.  Then restart mysql.  Note that this assumes that the new data dir is valid, meaning it includes its own mysql schema, etc.  Another thing to note is if the ib_logfile's on the new directory have different size as the original one.  If so you either make another change in your my.ini (look for something like innodb-log-file-size and set the value to the size of the new files), or you can delete the existing ib_logfile's so mysql will create new ones on startup.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question