Hi, everyone!
Is there a way to create a database using Perl?
I've been searching the Net, and all examples I came across were for connecting to an existing database.
I tried using: $result=$dbh->createdb("dbname"),
but it returns an error: Can't call method createdb on an undefined value...
I'd like my script to check if a certain database exists in MySQL, and if not, to create it.
Is there a way to create a database using Perl?
I've been searching the Net, and all examples I came across were for connecting to an existing database.
I tried using: $result=$dbh->createdb("dbname"),
but it returns an error: Can't call method createdb on an undefined value...
I'd like my script to check if a certain database exists in MySQL, and if not, to create it.