How can I use a MySql User Defined Variable in a .NET MySqlCommand? I simply want to execute the following Mysql statement SET @a = 1;SELECT @a; with MySql.Data.MySqlClient [System.Reflection.Assembly]::LoadWithPartialName("MySql.Data") $password = 'mypassword' $sql = "SET @a = 1;SELECT @a;" $server = 'localhost' $port = 3306 $database = 'test' $User = 'root' $conn=new-object MySql.Data.MySqlCli..