[英]How do I get a working MySQL database from my web server to my newly installed WAMP
Please be gentle. 请保持温柔。 I'm a newbie and I did search here and in Google for this problem but I can't find anything close. 我是新手,我确实在这里和Google中搜索了此问题,但是找不到任何东西。 I built a DB on my Web Server and was doing great entering all my records. 我在Web服务器上构建了一个数据库,并且在输入所有记录方面做得很好。 For the past week the Web Server claims they have been being spammed and I keep getting time outs and page load errors. 在过去的一周中,Web服务器声称它们被垃圾邮件了,我一直在超时和页面加载错误。 In my 'brilliance' I thought it would be simple to install WAMP on my computer, get the DB, populate it on my computer and upload it when I was done. 在我的“辉煌”中,我认为在计算机上安装WAMP,获取数据库,在计算机上填充它并在完成后上传它会很简单。
I was able to install the WAMP. 我能够安装WAMP。 However, I have absolutely no clue how to get the DB here, or where to put it or how to get it working in my testing server for Dreamweaver. 但是,我绝对不知道如何在这里获取数据库,或将数据库放置在何处,或如何使其在Dreamweaver的测试服务器中工作。 I tried an export from the Web Server but that only gave me a tiny * .sql file that can't possibly have all the 1700+ records I've already entered. 我尝试从Web服务器进行导出,但这仅给了我一个很小的* .sql文件,它不可能包含我已经输入的所有1700多个记录。
Can anyone please tell me where there might be instructions how to do this? 谁能告诉我在哪里可能会有指示如何执行此操作? As I said I've been searching and searching and the best I found was to go from one Web Server to another. 正如我所说的,我一直在搜索,发现的最好的方法是从一台Web服务器转到另一台Web服务器。 But that won't work for me. 但这对我不起作用。 Any help would be greatly appreciated. 任何帮助将不胜感激。
Obtain a mysql dump of your database. 获取数据库的mysql转储。 Then import it into your new database. 然后将其导入您的新数据库。
Here are the shell commands. 这是shell命令。
Run this one on the server with the working database. 在具有正常数据库的服务器上运行此程序。
$ mysqldump -u *username* -p *password* -h localhost *DB_NAME* > /path/to/output/file.sql
Run this on your machine with WAMP. 使用WAMP在计算机上运行此程序。
$ mysql -u *username* -p *password* -h localhost *DB_NAME* < /path/to/dump/file.sql
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.