Re: Create database with pdo_mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 dbname= is gonna work on
virtually every MySQL server.

That's where the username/password tables live.

'Course, you may not be allowed to connect to that database with the
login info you have...

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux