doushuo1989 2013-04-12 11:27
浏览 36
已采纳

在PHP中使用数据库操作中的.sql文件

I am kinda new to the whole development side, but I want to be good.

In database creation, I used to do this via PHPMyAdmin --> Wamp Server.

I got to learn how to use MySQL Workbench, and I am liking the experience.

The problem is, when I have the .sql file created via use of Work Bench, e.g. data.sql, I cannot import it to PHPMyAdmin, so as to continue in a my developments (web-related) as there are many errors comming up e.g. #1146.

It is really frustrating since I have to do double work and create what I did in Work Bench in PHP MyAdmin.

Is there a simpler way?

Like can I just connect to a .sql file (as the database) and continue with execution of my projects? (Its a bit stupid, but I have been reduced to that.)

Please help.

Thanks in advance.

  • 写回答

1条回答 默认 最新

  • dousongxuan7507 2013-04-12 13:43
    关注

    This post seems like it might help you out, did you check the default encoding of the dump and make sure mysql expects the right type of encoding?

    http://forums.mysql.com/read.php?103,275798,275798

    Also: Please read the policies of the board before asking your question. It states to do some research before asking questions like this... I googled "mysql workbench dump to phpmyadmin" and the very first item that popped up was a video explaining this EXACT situation. :)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建