您的位置:首页 > 运维架构 > Linux

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐