POSTGRESQL 无法创建数据库 出现类似createdb: could not connect to database postgres: FATAL: role “XXXX” does not exist

I figured I’d share getting setup on my Ubuntu machine.

Installing
[shell]
sudo apt-get install postgresql
[/shell]

Creating User
[shell]
createdb book
createuser: could not connect to database postgres: FATAL:  role "myusername" does not exist
[/shell]
Continue reading “POSTGRESQL 无法创建数据库 出现类似createdb: could not connect to database postgres: FATAL: role “XXXX” does not exist”