简体   繁体   中英

Recovering MySQL database from live server MySQL data to local server MySQL data

I have a live project and I am using phpMyAdmin and Ubuntu Server 16.04. I have lost my phpMyAdmin login access, but using FTP access I downloaded my database suppose name productions folder from MySQL data folder. Now, I want to import this productions database to my local server (using XAMPP).

I was trying to copy this folder and moved it to my local MySQL/data folder. The database is showing the table name but doesn't show any result, and when I click any table it's showing an error. How can I restore this database into my local server? Please help me to solve this problem.

如果您具有对服务器的控制台访问权限,则可以使用mysqldump -u*username* -p*password* databasename > somefile.sql然后将该sql文件导入本地数据库

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM