我刚刚在Ubuntu上安装了PostgreSQL-8.4.如何启动它/它的GUI,连接到数据库等?我知道SQL,但PostgreSQL在我的Ubuntu 10.04桌面上找不到图标(因此,我不知道如何启动它).
gra*_*ntk 15
Postgresql没有内置的gui.
检查它是否正在运行从终端运行以下命令
ps aux | grep postgres
Run Code Online (Sandbox Code Playgroud)
您可以使用psql从命令行进行访问.
安装psql
aptitude install postgresql-client
Run Code Online (Sandbox Code Playgroud)
然后运行
psql -h dbhost -U username dbname
Run Code Online (Sandbox Code Playgroud)
如果你想要一个gui intall包pgadmin
aptitude install pgadmin3
Run Code Online (Sandbox Code Playgroud)
我使用以下命令启动postgres提示符:
sudo -u postgres psql
Run Code Online (Sandbox Code Playgroud)
我使用Ubuntu 14.04
如果您是Mac用户,请尝试运行此用户
postgres -D /usr/local/var/postgres
Run Code Online (Sandbox Code Playgroud)
然后做
psql
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
57512 次 |
| 最近记录: |