在C#app中创建mysql数据库 [英] Create mysql db in C# app
本文介绍了在C#app中创建mysql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在创建一个使用数据库的应用程序。如果数据库不存在或丢失,我想添加选项以从模型或备份文件创建数据库。我发现了这个:
在C#中运行.sql脚本文件 [ ^ ]
但有一件事我找不到。我在哪里为新数据库命名?或者我应该怎样做才能让用户能够为数据库选择他想要的名字?
我尝试了什么:
我是学生,所有这些对我来说都很安静。
I'm making an app to use a database. In case the database doesnt exist or is lost, i want to add the option to create a database from a model or a backup file. I found this :
Run a .sql script file in C#[^]
But there is a thing i don't find. Where do i put the name for the new db? Or what should i do to give the user the ability to chose the name he want for the db?
What I have tried:
I'm a student, and all this is quiet new for me.
推荐答案
该脚本是对于Microsoft SQL Server。如果您想使用MySQL,请转到 MySQL :: MySQL社区版 [ ^ ]。
That script is for Microsoft SQL Server. If you want to use MySQL then go to MySQL :: MySQL Community Edition[^].
这篇关于在C#app中创建mysql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文