tags:

views:

175

answers:

1

I am create a class which uses PDO to interact with MySQL. Can I create a new MySQL table using PDO?

+2  A: 

yes , its same like run a regular query like "CREATE TABLE ..."

Haim Evgi
When creating a PDO connection, you need to associate that connection with a database right? I was wondering if that can be avoided or if it would be dangerous to use the default mysql database or else if it would be best to just create an empty database where PDO can connect to.
thearchitect