How to change mysql database directory on WAMP
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.