Re: [PHP] Create database with pdo_mysql

2006-05-15 Thread Richard Lynch
On Mon, May 15, 2006 7:18 am, Kevin Waterson wrote: > Is it possible to create a database with pdo_mysql? > $dbh = new PDO("mysql:host=$hostname;dbname=my_db", $username, > $password); > is sort of what it requires... is there some way to omit the dbname? If you can't elminate it, 'mysql' as a dbn

[PHP] Create database with pdo_mysql

2006-05-15 Thread Kevin Waterson
Is it possible to create a database with pdo_mysql? $dbh = new PDO("mysql:host=$hostname;dbname=my_db", $username, $password); is sort of what it requires... is there some way to omit the dbname? Kind regards Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Libert