Difference between revisions of "Connect to a database"

From wikieduonline
Jump to navigation Jump to search
 
(21 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
* [[MariaDB]]:
 +
** <code>[[mysql (command)|mysql]]</code>
 +
** <code>[[mysql (command)|mysql]] NameOfYourDB</code>
 +
* [[PostgreSQL]]: [[psql]]:
 +
** <code>[[sudo -u postgres psql]]</code>
 +
** <code>[[psql service=MyConfiguredDB]]</code> <code>([[$HOME/.pg service.conf]])</code>
 +
** <code>\c name_of_db</code>
 +
** <code>[[\connect]] name_of_db</code>
 +
* [[MongoDB]]: <code>[[mongo]]</code>, <code>[[use]] DB_NAME</code>
  
  
* [[MariaDB]]: <code>[[mysql]]</code>
+
== Related ==
* [[PostgreSQL]]: <code>[[psql]]</code>
+
* <code>[[SELECT current database();]]</code>
* [[MongoDB]]: <code>[[mongo]]</code>, <code>[[use]] DB_NAME</code>
 
 
 
  
  
 
== See also ==
 
== See also ==
 +
* {{psql}}
 
* {{DBs}}
 
* {{DBs}}
  
 
[[Category: Databases]]
 
[[Category: Databases]]

Latest revision as of 07:04, 17 February 2023

Advertising: