从另一个LAMP访问数据库

I have two LAMP installations, one is 7.1 and another is 5.4. Mistakenly I have copied one really big DB in lampp 7.1 instead of 5.4. So now I am worry about is there any way that I can port it to 5.4 or use it directly from 7.1.

It will be hard for me to again import this. Is there any way?