linux:postgres
Table des matières
Postgres
Quelques commandes
su postgres
psql
# Affiche les databases \l # Se connecte à la db Creapix \c creapix # Affiche toutes les tables commençant par makeitsimple \dt makeitsimple* # Affiche toutes les tables \dt # Quitte \q # Effacer une table et redémarrer l'index TRUNCATE makeitsimple_itsm_software_name RESTART IDENTITY CASCADE;
Creer un utilisateur et affecter des droits
create user odoo with encrypted password 'odoo1234'; grant all privileges on database klinicare to odoo2; GRANT USAGE ON SCHEMA public TO odoo2; GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO odoo2;
linux/postgres.txt · Dernière modification : de root
