📜  进入 postgresql 数据库 AS - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:26.793000             🧑  作者: Mango

代码示例1
sudo -u postgres psql postgres
Create user, database, and grant permission
CREATE USER kodekloud_gem WITH PASSWORD 'LQfKeWWxWD';
CREATE DATABASE kodekloud_db10;
GRANT ALL PRIVILEGES ON DATABASE "kodekloud_db10" to kodekloud_gem;