Difference between revisions of "Connect to a database"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
** <code>[[sudo -u postgres psql]]</code>
 
** <code>[[sudo -u postgres psql]]</code>
 
** <code>[[psql service=MyConfiguredDB]]</code> <code>([[$HOME/.pg service.conf]])</code>
 
** <code>[[psql service=MyConfiguredDB]]</code> <code>([[$HOME/.pg service.conf]])</code>
 +
** <code>\c name_of_db</code>
 
* [[MongoDB]]: <code>[[mongo]]</code>, <code>[[use]] DB_NAME</code>
 
* [[MongoDB]]: <code>[[mongo]]</code>, <code>[[use]] DB_NAME</code>
  

Revision as of 18:54, 15 December 2022

Advertising: