Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Perl and MySQL privileges

by yakko (Friar)
on Mar 21, 2001 at 11:06 UTC ( #65979=note: print w/ replies, xml ) Need Help??


in reply to Perl and MySQL privileges

Supposing your MySQL user is GRANTed the CREATE privilege, and you connect as per chromatic's post above, you can then do something like:

my $sth=$dbh->prepare('CREATE DATABASE IF NOT EXISTS foo'); $sth->execute();
Your MySQL user does need to have had CREATE privileges GRANTed to them on a global level.

--
Me spell chucker work grate. Need grandma chicken.


Comment on Re: Perl and MySQL privileges
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://65979]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2014-09-18 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (120 votes), past polls