Solved

MySQL & Open Remote Directory

Posted on 2012-04-03
1
156 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

ClickHouse in a General Analytical Workload

We have mentioned ClickHouse in some recent posts, where it showed excellent results.

In this article on Experts Exchange, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.

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…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

632 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