Difference between revisions of "\connect"
Jump to navigation
Jump to search
(Created page with "{{lc}} * {{psql}}") |
|||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | <code>\c name_of_db</code> or <code>[[\connect]] name_of_db</code> | ||
+ | [[tsdb]]=> \c tsdb | ||
+ | psql (14.7 (Ubuntu 14.7-1.pgdg22.04+1), server 15.2 (Ubuntu 15.2-1.pgdg22.04+1)) | ||
+ | WARNING: psql major version 14, server major version 15. | ||
+ | Some psql features might not work. | ||
+ | SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off) | ||
+ | You are now connected to database "[[tsdb]]" as user "[[tsdbadmin]]". | ||
+ | |||
+ | == Related == | ||
+ | * [[List databases]]: <code>[[\list]]</code> | ||
+ | * [[tsdb]] | ||
+ | * [[psql postgres]] | ||
+ | * [[CREATE TABLE]] | ||
+ | |||
+ | == See also == | ||
* {{psql}} | * {{psql}} | ||
+ | |||
+ | [[Category:PostgreSQL]] |
Latest revision as of 10:48, 23 September 2024
\c name_of_db
or \connect name_of_db
tsdb=> \c tsdb psql (14.7 (Ubuntu 14.7-1.pgdg22.04+1), server 15.2 (Ubuntu 15.2-1.pgdg22.04+1)) WARNING: psql major version 14, server major version 15. Some psql features might not work. SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off) You are now connected to database "tsdb" as user "tsdbadmin".
Related[edit]
See also[edit]
Advertising: