Solved

MySQL & Open Remote Directory

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 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