newyuppie
asked on
create MySQL database
hi,
how do i create a MySQL database using code in vb 2005?
thanks
how do i create a MySQL database using code in vb 2005?
thanks
ASKER
not exactly angelIII,
i use a third party provider (MySQLDirect from CoreLabs) that provides native .net provider including tableadapters and all.
anyway, the problem is how do i connect to the MySQL server (using my provider if you know how, or maybe with ODBC one from mysql site) when (in the case of MySQLDirect) i need to pass as a parameter the name of the database to connect to and that database is yet to be created.
maybe this is a problem of my provider, i don't know if you need to always (using any other provider) pass the database name to connect to MySQL server, could you instruct me in that maybe?
thanks
i use a third party provider (MySQLDirect from CoreLabs) that provides native .net provider including tableadapters and all.
anyway, the problem is how do i connect to the MySQL server (using my provider if you know how, or maybe with ODBC one from mysql site) when (in the case of MySQLDirect) i need to pass as a parameter the name of the database to connect to and that database is yet to be created.
maybe this is a problem of my provider, i don't know if you need to always (using any other provider) pass the database name to connect to MySQL server, could you instruct me in that maybe?
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
angel, that works actually. i have connected the user to the mysql database and issued a create database statement, i didnt know you could create dbs from within another db.
thanks
thanks
CREATE DATABASE <dbname>;
being connected to the MySQL server.
But I guess you problem is not that command?