Mysql and Miniprofiler

Hi, I cannot have the below code working. Either I am providing MySqlScript with an invalid format, either I am using InnerConnection which makes the previous line of code useless. Any idea ? Am I missing something ?

Tx in advance,

var connection = CreateConnection();
var profile =  new ProfiledDbConnection(connection, UoW.UoW.Profiler);
var mysqlScript = new MySqlScript(profile.InnerConnection as MySqlConnection)
                      {
                          Query = script
                      };
mysqlScript.Execute();