【问题标题】:how to apply the diff.sql into the mysql database from shell script如何从 shell 脚本将 diff.sql 应用到 mysql 数据库中
【发布时间】:2013-08-02 08:17:52
【问题描述】:

我使用hibernate SchemaUpdater 生成了名为diff.sql 的sql 文件。 如何使用 shell 脚本将此 diff.sql 文件应用到我的数据库。 谢谢你

【问题讨论】:

    标签: mysql hibernate shell ubuntu


    【解决方案1】:
    $ mysql -u "${username}" -p "${database}" < diff.sql
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-10-29
      • 1970-01-01
      • 1970-01-01
      • 2011-04-23
      • 2015-01-16
      • 2022-09-27
      • 2015-08-09
      • 1970-01-01
      相关资源
      最近更新 更多