想了解C#中实现查找mysql的安装路径的相关内容吗,在本文为您仔细讲解C#查找mysql安装路径的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:C#,查找,mysql,安装路径,下面大家一起来学习吧。
private string GetMysqlPath()
{
string strPath = string.Empty;
string strsql = "select @@basedir as basePath from dual ";
strPath = 数据库执行当前的strsql
strPath = strPath.Replace("/", "\\");
return strPath;
}
strmysqlPath= GetMysqlPath() + "
\\bin";