通过本文主要向大家介绍了马桶c的个人空间,c语言,欲情 c max,维生素c,crh2c等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
1.c#可以调用msyql的导入导出命令,但是需要先判断客户机是否安装了mysql,及其安装mysql的路径问题。
2.查询mysql安装路径的函数
private string GetMysqlPath()
{
string strPath = string.Empty;
string strsql = "select @@basedir as basePath from dual ";
strPath = 数据库执行当前的strsql
strPath = strPath.Replace("/", "\\");
return strPath;
}
</div>
3.获取mysql的安装bin路径
strmysqlPath= GetMysqlPath() + "\\bin";
</div>
4.然后根据上一篇中的博客,对mysql进行附加和备份功能。