Thoughts inside the SILENT SOUL

Posts Tagged ‘python

Admin Scripts in pgdb

Posted by: Geethapriya on: February 6, 2008

In my project there was need for writing few admin scripts in python to create database account and database for a user.
In case of MySQL we connected to mysql database (admin database) and then performed the DDL queries like create database.The connection string we used is
conn=mysql.connect(host=”localhost”,user=”username”,passwd=” “,db=”mysql” ).
It worked well.In the same way we [...]