php 将mysql数据库导入wamp服务器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5920865/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 22:53:06  来源:igfitidea点击:

import mysql database to wamp server

phpmysqldatabasedatabase-connectionwamp

提问by DDD

I am newbie using php and wamp. I am trying to use a mysql db with the wamp server. I am really confused on what the right steps are. Should I put the sql file in the/www folder or what is the way to go? Thanks a lot

我是使用 php 和 wamp 的新手。我正在尝试将 mysql db 与 wamp 服务器一起使用。我真的很困惑什么是正确的步骤。我应该将sql文件放在/ www文件夹中还是要走的路?非常感谢

回答by dgamma3

  1. left click wamp -> phpmyadmin
  2. select database then click import (top right)
  3. locate the database and click go.
  1. 左键单击 wamp -> phpmyadmin
  2. 选择数据库然后单击导入(右上角)
  3. 找到数据库并单击 go。

回答by piotrm

If you just started I would recommend using phpmyadmin, which comes with wamp. Just run your main localhost www page, select phpmyadmin from there and use import. It's like uploading a file though www, you don't have to place it in any specific directory.

如果您刚刚开始,我建议您使用 wamp 附带的 phpmyadmin。只需运行您的主 localhost www 页面,从那里选择 phpmyadmin 并使用导入。这就像通过www上传文件一样,您不必将其放在任何特定目录中。