MySQL::GrantPrivileges - Generates GRANT statements by loading data from mysqld.
use MySQL::GrantPrivileges;
my $priv = Mysql::GrantPrivileges->new(
host => '127.0.0.1',
port => '3306',
user => 'root',
password => 'secret',
);
# outputs SQL
print $priv->to_string;
MySQL::GrantPrivileges is a generator of GRANT statements by loading data from mysqld. This module accesses mysql.user and mysql.db to generate statements.
This distribution includes a script named grant-privileges.pl. So you can use this script to generate GRANT statements.
Copyright (C) 2013 Yoshihiro Sasaki
This is free software licensed under
The BSD 2-Clause License
The full text of the license can be found in the LICENSE file included with this distribution.
Yoshihiro Sasaki ysasaki@cpan.org