启动访问
psql -h 127.0.0.1 -p 5432 -U postgres -d mydatabase
2
psql -h localhost -p 5432 -U postgres -d database_name