spauldingsmails Posted March 17, 2009 Share Posted March 17, 2009 I have created a postgresql user who can create users and databases but they do not require their own database. Therefore, I'm wondering if it is possible to create a connection using pg_connect without a database name. Quote Link to comment https://forums.phpfreaks.com/topic/149855-pg_connect-without-dbname/ Share on other sites More sharing options...
btherl Posted March 17, 2009 Share Posted March 17, 2009 You can have them connect to the template database, I think it is template0 or template1. It doesn't matter which database you connect to, you just need to connect to one. Quote Link to comment https://forums.phpfreaks.com/topic/149855-pg_connect-without-dbname/#findComment-787238 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.