0
我想爲我的rails應用程序使用postgresql數據庫。rails postgresql數據庫連接
我跟着這個鏈接提供的教程:
http://blog.crowdint.com/2010/10/27/working-with-postgresql-and-rails3.html
我成功安裝PostgreSQL的用這個命令:
sudo apt-get install postgresql postgresql-client postgresql-contrib libpq-dev libpgsql-ruby libgda-4.0-postgres libpq-dev
當我到達行創建一個用戶我進入這個命令:
sudo -u postgres psql template1
但是當我輸入root密碼後,它給了我一個錯誤sayin g
env: -u: No such file or directory
任何想法爲什麼會彈出錯誤?
這不是一個答案,你直接的問題,但如果你是不是已經在使用它,我會強烈建議您下載和使用pgAdmin的,主Postgres的GUI管理工具,這將幫助你很多。 –