[英]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. 我有一个在线项目,正在使用phpMyAdmin和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.
我已经失去了phpMyAdmin登录访问权限,但是使用FTP访问权限我从MySQL数据文件夹中下载了我的数据库,假设名称为productions文件夹。 Now, I want to import this productions database to my local server (using XAMPP).
现在,我想将此生产数据库导入到我的本地服务器(使用XAMPP)。
I was trying to copy this folder and moved it to my local MySQL/data folder. 我试图复制此文件夹并将其移动到本地MySQL / data文件夹。 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文件导入本地数据库
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.