简体   繁体   English

如何从Web服务器到新安装的WAMP获取有效的MySQL数据库

[英]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.

相关问题 如何从wamp中删除我损坏的mysql并将分离安装的mysql连接到wamp? - How to remove my corrupted mysql from wamp and connect separatly installed mysql to wamp? 我可以从沼泽中恢复我的MySQL数据库吗? - can i recover my mysql database from wamp? 如何使 Drupal 加载本地化/翻译新安装的自定义块中的字符串? - How do I make Drupal load localize / translate the strings from my newly installed custom block? 如何让我的图像在我的本地主机(WAMP)中打开 - How do I get my image to open in my localhost (WAMP) mysql数据库仅在我运行本地wamp服务器时才连接,即使所有文件都在服务器站点中 - mysql database connects only if i run my local wamp server even though all the files are in server site 我已经在192.168.1.104系统上安装了WAMP服务器,如何从其他系统示例:192.168.1.5连接MySql。 - I have installed WAMP Server on 192.168.1.104 System, How to connect MySql From other System Ex.: 192.168.1.5 如何显示保存在服务器上的文件夹中的图像以及mySQL数据库中的数据? - How do I display images saved in a folder on my server alongside data from mySQL database? 如何从Paypal取回数据,以便可以相应地更改MySQL数据库? - How do I get data back from Paypal so I can alter my MySQL database accordingly? 如何从表单中获取信息以使用XAMPP插入mySQL数据库? - How do I get the information from my form to insert into a mySQL database using XAMPP? 使用MySQL数据库5.0.0更新到PHP 7后,如何重新连接网站上的网页? - How do I reconnect my web pages on my website after updating to PHP 7 with a MySQL database 5.0.0?<?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM