Windows服务中的MySQL连接 [英] MySQL connection in windows service

查看:94
本文介绍了Windows服务中的MySQL连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,我们可以在Windows服务项目中连接到mysql吗?
我还想知道我们如何在不要求权限的情况下与桌面服务交互..

请帮助我...

I want to know that, can we connect to mysql in windows service project.
I also want to know that how can we interact with desktop in service without asking for permissions..

Please help me...

推荐答案

我们可以在Windows服务项目中连接到mysql
好吧,通过使用连接字符串 [ ^ ]!

上面的链接提供了有关连接字符串的所有信息.可以在这里阅读有关数据通信的更多信息:使用ADO.NET访问数据 [ ^ ]

在不请求权限的情况下与台式机交互
不确定此处的桌面意味着什么,但是如果您要查找任何正在运行的进程或启动进程,则可以使用 ^ ].
can we connect to mysql in windows service project
Well, by using a Connection String[^]!

The link above provides all info about connection string. Further info regarding the data communication can be read here: Accessing data with ADO.NET[^]

interact with desktop in service without asking for permissions
Not sure what you mean by desktop here but if you want to look for any running process or launch a process then you can do it using Process Class[^].


这篇关于Windows服务中的MySQL连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆