20
tôi đang cố gắng để phát hiện db của tôi tại Heroku thiết bị đầu cuối như thế này:Làm thế nào để sử dụng pg: psql trong heroku?
[email protected]:~/RubymineProjects/myapp$ heroku pg:info
The plugin heroku-sql-console has been deprecated. Would you like to remove it? (y/N) n
=== HEROKU_POSTGRESQL_JADE_URL (DATABASE_URL)
Plan: Dev
Status: available
Connections: 1
PG Version: 9.1.6
Created: 2012-10-10 19:59 UTC
Data Size: 9.1 MB
Tables: 32
Rows: 2802/10000 (In compliance)
Fork/Follow: Unsupported
Vì vậy, tôi đã cố gắng:
[email protected]:~/RubymineProjects/myapp$ heroku pg:psql
The plugin heroku-sql-console has been deprecated. Would you like to remove it? (y/N) n
psql (9.1.7, server 9.1.6)
SSL connection (cipher: **-**-****-**, bits: 256)
Type "help" for help.
tôi cần phải liệt kê tất cả các hồ sơ người dùng:
dbfjinfaes61gb=> select * from users
dbfjinfaes61gb->
Nhưng ở trên, không có gì xảy ra, những gì tôi đang thiếu ở đây?
Cảm ơn! có dấu chấm phẩy của nó bị thiếu .. bây giờ tôi có thể thấy kết quả và 'END' ở cuối của nó, làm thế nào tôi có thể tiến hành để nhập lệnh tiếp theo? – simo
gõ 'q' để xóa màn hình và nhận lại lời nhắc'> ' – catsby