in reply to doubt in Perl+mysql

Install DBI and DBD::mysql modules, connect to database with DBI->connect and use the do method with the sql to create a database.