i have a problem with mysql+c# in mysql export operation.
FolderBrowserDialog fol=new FolderBrowserDialog();
if (fol.ShowDialog() == DialogResult.OK)
{
string path= fol.SelectedPath;
string sql = "SELECT * INTO OUTFILE '" + path+ "\person.csv' FIELDS TERMINATED BY',' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\n' FROM tpers ";
MySqlCommand daa = new MySqlCommand(sql, conn);
conn.Open();
daa.ExecuteNonQuery();
conn.Close();
}
for example
path = "c:\export"
but when i execute this code it doesnt export person.csv to intended path.
it creates "c:export\person.csv" file and creates this file in mysql/data folder..
can u explain the problem, and how to fix it...
/export/person.csv? Since this question has nothing to do with C# (or your application), you might want to ask on a MySql forum, specifically the provider of the Windows port.