How to change mysql database directory on WAMP

独自空忆成欢 提交于 2019-11-27 02:52:52

问题


I'm running a dual boot server with Windows 7 and Ubuntu. On Ubuntu, everything is configured how I want it. On Windows, I need to know how to change my MySQL database directory so that it uses the same directory I'm using on Ubuntu. How do I do this?


回答1:


Hope this image would guide clear. You can write click and select view image to see my answer clearly

Please don't forget to restart wamp/xampp after these steps then it will be applied




回答2:


1 in WAMP sever 2.2 [ in windows ],

go to C:\wamp\bin\mysql\mysql5.5.24\my.ini

[2] you will find like this,

datadir=c:/wamp/bin/mysql/mysql5.5.24/data

[3] change this with

" datadir = Your Ubuntu MySql Data Directory Path ".

[4] Then restart wamp serever.

i hope this will helpful to solve your problem.

Thanks.




回答3:


i Have better idea ... open phpmyadmin page ... and select you data base ... on the operations tab and in the Rename database to section ... write your new Database name . you will see tow message . press yes button for both



来源:https://stackoverflow.com/questions/12657081/how-to-change-mysql-database-directory-on-wamp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!