CentOS7下PostgreSQL创建数据库及执行脚本
进入数据库服务器,执行命令切换到 postgres用户
su - postgres
创建数据库并授权
create database security owner postgres;
grant all privileges on database security to postgres;
切换到新建的数据库
\c security
执行初始化脚本
\i /opt/tools/security_init.sql
SQLServer SQL窗口备份还原数据库
CentOS7下MySQL安装