https://github.com/shenlebantongying/workbench-database
A database is just a bunch of Excel files :)
https://github.com/shenlebantongying/workbench-database
Last synced: 3 months ago
JSON representation
A database is just a bunch of Excel files :)
- Host: GitHub
- URL: https://github.com/shenlebantongying/workbench-database
- Owner: shenlebantongying
- Created: 2021-06-02T13:45:22.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-19T06:31:20.000Z (almost 4 years ago)
- Last Synced: 2025-01-21T04:14:44.238Z (5 months ago)
- Language: PLpgSQL
- Homepage:
- Size: 590 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PostgreSQL Management 101
```bash
systemctl status postgresql.service
su
su -l postgres#check port
cat /etc/services | grep postgresql
```CLI:
+ psql## Load sample
```
psql
CREATE DATABASE dvdrental;
\q
psql dvdrental < /home/slbtty/workbench-dbms/devrental_/dvdrental.rental
```
# Rune .sql```
psql -d some_database -f nice.sql
```
# Miscdefault data dir
/var/lib/postgres/data/
pSQL Use cluster->databases->schemas hierarchy
-> MySql only use schemasTODO:
+ .pgpass?
+ Important feature -> PostGIS