dream_life5200 2017-01-02 09:07
浏览 54
已采纳

通过备份删除MySql整个数据库(表和实体)。 有没有办法重新创建它。

I am working on a web project using php CodeIgniter framework. I used lots of tables and entities in my project database. But unfortunately the database is deleted from my localhost and so the backups.

Now it is very time consuming to create the tables and all the entities for my database that i used for my project.

Is there any way to automatically create the tables and entities from my php source code?

  • 写回答

1条回答 默认 最新

  • dongni8969 2017-01-02 09:15
    关注

    Actually if you put your sql codes, to create the tables if they don´t exist, then it is possible to automatically create the tables and entities from your php source code, when the database was deleted.

    For example. Try select from… else create table… and retry select… Something like that…

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

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记