I have 2 different MySQL databases, one created on a live server and another on a local XAMPP server. For some reasons, I can't access the databases on the live server (using phpMyAdmin) but I have access to the database files in var/mysql
. So, I'm trying to recreate the databases on the local XAMPP server and access them with phpMyAdmin.
I've tried 2 approaches.
Copying the database file into the mySQL data directory of the local server. With this, I can see the database on phpMyAdmin, but there are no tables populated in it. I'm guessing that's because of metadata inconsistencies.
Replacing the whole local mySQL data directory with the live mySQL data directory. But I'm getting connection problems.
MySQL said: Documentation Cannot connect: invalid settings. mysqli::real_connect(): (HY000/2002): Permission denied Connection for controluser as defined in your configuration failed. mysqli::real_connect(): (HY000/2002): Permission denied phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
I've tried solutions like these, but I'm not still able to get access to the databases on phpMyAdmin.
Edit: I mean I don't have access to the databases either through phpyAdmin or command line mySQL. I just have access to the raw files.