Create database with pdo_mysql
| From: | Kevin Waterson | Date: | Mon, 15 May 2006 12:18:38 +0000 |
| Subject: | Create database with pdo_mysql | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-236186@lists.php.net to get a copy of this message | ||
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.
Liberty is a well-armed lamb contesting the vote."