I am trying to set path environment variable for `MySql`.

I don't get an error, but my code doesn't work.

**Code:**

First:

```
string pathvar = @";C:\Program Files\MySQL\MySQL Server 5.1\bin\\";
System.Environment.SetEnvironmentVariable("PATH", pathvar);

```

Second:

```
string pathvar = System.Environment.GetEnvironmentVariable("PATH");
System.Environment.SetEnvironmentVariable("PATH", pathvar + @";C:\Program Files\MySQL\MySQL Server 5.1\bin\\");

```

Thank you for your help...