Page 1 of 1

How to create database?

Posted: Fri 07 Jul 2006 22:22
by newyuppie
hi,

i was wondering how to create a new database in the host and port specified. my problem is that using MySQLDump or MySQLScript both require the MySQLConnection as input parameter, but MySQLConnection requires a database as parameter, so its a bit of a loop.

is there a way to connect to the host and port (no specified database) and execute a "CREATE DATABASE" statement?

thank you for the time
ny

Posted: Mon 10 Jul 2006 11:40
by Alexey
You may omit database name in a connection string.

Posted: Mon 10 Jul 2006 13:36
by newyuppie
thank you

Posted: Mon 10 Jul 2006 15:26
by Alexey
You are welcome.