【问题标题】:Set up the database structure and populate it using the SQL dump given设置数据库结构并使用给定的 SQL 转储填充它
【发布时间】:2019-08-24 16:12:48
【问题描述】:

我如何设置数据库结构并使用给定的 SQL 转储文件填充它,或者有没有办法通过编写 sql 命令将表导入到我在 phpmyadmin 中获得的迁移中?

【问题讨论】:

标签: sql laravel laravel-5 phpmyadmin


【解决方案1】:

如果您有 sql 文件,您可以使用以下命令将其导入数据库

1.Create a database
2.Open XAMPP shell

Enter this commands
 #1->mysql -u root
 #2.use your_database_name
 #3.source path_to_sql_file (without double quotes)
 #4.hit enter button.

【讨论】:

  • 谢谢你的回答,但我正在使用 laragon 你能指导我吗
  • 试试这个命令我不确定只是试试 cmd>cd \bin \bin>mysql -u -p ;
猜你喜欢
  • 1970-01-01
  • 2018-03-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多