centos7 执行一个数据库脚本创建项目中的数据库
2017-07-25 17:47
183 查看
[root@localhost ~]# su postgres 切换用户 bash-4.2$ psql could not change directory to "/root": Permission denied psql (9.5.6) Type "help" for help. postgres=# psql -Upostgres postgres-# psql -Upostgres</root/Desktop/db.sql 我的脚本在桌面 ==================
参看http://www.cnblogs.com/Amos-Turing/p/6862253.html
相关文章推荐
- 创建一个可执行的python脚本
- 如何在C#中用程序执行指定的SQL脚本文件,实现自动安装创建数据库
- Window Service 创建:在后台执行一个服务,可定时做一些操作,如轮询数据库,定时发邮件
- VS Web项目安装部署(安装数据库[执行sql脚本]并将连接写入web.config)
- [置顶] C# 执行Mysql数据库脚本 创建数据库和表
- 使用linux客户端执行shell脚本创建数据库初始化数据库中文乱码问题
- 写一个创建新文本的脚本需要要执行权限
- Window Service 创建:在后台执行一个服务,可定时做一些操作,如轮询数据库,定时发邮件 .
- google地图创建一个标记,删除标记,放出源码,很好的融合到你的项目中,自动搜索地址,点击创建,点击标记删除,取得经纬度和缩放级别,取得结果放到表单,写到数据库(原创)
- 一个创建Coco2d-x项目的脚本
- MySQL利用命令和PHP脚本创建删除一个数据库
- Cocos2d-x 3.0 创建一个场景,并设置现场的时候,项目开始执行上主动
- 创建一个可执行的python脚本
- 如何在C#中用程序执行指定的SQL脚本文件,实现自动安装创建数据库.txt
- 创建oracle11g数据库后,脚本文件执行及相关配置
- 通过Jdbc执行sql在数据库中创建一个视图
- 通过beego快速创建一个Restful风格API项目及API文档自动化 本文演示如何快速(一分钟内,不写一行代码)的根据数据库及表创建一个Restful风格的API项目,及提供便于在线测试API的界
- Window Service 创建:在后台执行一个服务,可定时做一些操作,如轮询数据库,定时发邮件
- linux下创建一个可执行脚本
- 做一个创建cocos2d-x新项目的shell脚本