Operating System:
Windows 7
Problem:
So i have installed a huge MySQL database on my main drive which is very small and after everything was finished i had even fewer space left. So i had two options either moving the database or importing it again. Since it took about 4-5 hours to import it it would have been a waste a time so the only thing i could do was move it.
Solution:
Stop the server.
If you install MySQL like me without looking the data files are in C:\ProgramData\MySQL\MySQL Server 5.5
Move the data file in this folder.
Edit the my.ini file (remember you have to be a administrator to actually edit the file so open as administrator).
Change this line: "datadir" with the new location of the data folder
Restart the server.
skip to main |
skip to sidebar
Pages
Thursday, 3 May 2012
Labels
- add_column (2)
- alias (1)
- Android (2)
- api (2)
- arguments (1)
- autocomplete (1)
- bang (1)
- border (1)
- browser (1)
- check (1)
- css (1)
- csv (1)
- darnket (1)
- data (2)
- database (1)
- db:migrate (1)
- debugger (1)
- default (1)
- default user (1)
- development (2)
- down (1)
- effects (1)
- Emacs (4)
- Emacs24 (1)
- eventmachine (2)
- expectations (1)
- factory girl (2)
- file (1)
- first (1)
- focus (1)
- function (1)
- gem (1)
- git (2)
- highlights (1)
- html (1)
- ie7 (1)
- index (1)
- internet (1)
- Iphone (1)
- javascript (3)
- jquery (3)
- jquery-ui (1)
- JQUERY. toggleClass (1)
- key biding (1)
- mac (2)
- mac osx (3)
- method (1)
- migrations (2)
- mock (2)
- mocks (2)
- mongodb (1)
- MySQL (3)
- namespace (1)
- operators (1)
- optimizing (1)
- password (1)
- popup (1)
- postgresql (2)
- RAIL_ENV (1)
- rails (16)
- regex (1)
- regular expressions (1)
- remove_column (1)
- repair (1)
- repository (1)
- resize (1)
- rspec (7)
- rspecs (6)
- ruby (16)
- ruby on rails (12)
- sdk (1)
- select (2)
- server (1)
- shortcut (1)
- specs (3)
- stash (1)
- stub (4)
- stub_chain (1)
- terminal (2)
- test (1)
- traits (1)
- trusted source (1)
- tutorial (1)
- Ubuntu (6)
- validation (1)
- value (1)
- viewport (1)
- windows (1)
- windows7 (1)
Powered by Blogger.
0 comments:
Post a Comment