本文目录一览

1,如何用sqlserver查询服务器就有哪些程序在运行

sqlserver可以查看到有哪些会话。可通过系统的“性能”来查看:开始->管理工具->性能(或者是运行里面输入 mmc)然后通过添加计数器添加 SQL 的常用统计 然后在下面列出的项目里面选择用户连接就可以时时查询到数据库的连接数了。不过此方法的话需要有访问那台计算机的权限,就是要通过windows账户登陆进去才可以添加此计数器。
打开服务-->sqlserveragent-->属性-->登录,设置为本地系统帐户.同样:mssqlserver-->属性-->登录,设置为本地系统帐户.

如何用sqlserver查询服务器就有哪些程序在运行

2,如何查看那些IP 访问本机Linux mysql 数据库

进入mysql命令行查询进程mysql -uroot -pmysql> show full processlist;删除相应ip的进程id kill 5872;
1.进入mysql命令行查询进程 mysql -uroot -p mysql> show full processlist; 2.删除相应ip的进程id kill 5872 (要杀死的进程) 当然如果您对linux技术感兴趣,不妨买一本《linux就该这么学》看看吧,入门的神书。
开始 ---运行----cmd-----netstat 看一下 3306端口的链接 都是MYSQL的 这个是WINDOWS 系统的 你说的LINUX我想也是一样的 只要是链接3306端口的都是MYSQL链接 当然你没有特别修改过你的MYSQL链接端口
问题补充:我的网站配置是linux6+tomcat6+mysql5, TOMCAT下面CONF文件夹里的三个地址都能访问因为另外的有IP的连接数据库测试啊 ? web.xml
For 2nd question, pls refer to: http://till.javaeye.com/blog/115659

如何查看那些IP 访问本机Linux mysql 数据库

3,sqlserver怎么查看哪些地方连接数据库了

<p>楼主,看你提问的意思,好像是application里面有些mappingresources 是不是没有配置完,一下是我以前做项目用的application,你注意看看,其实用myeclipse这些配置文件都是系统自己生成的,没有必要自己写:</p> <p><strong>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br>&lt;beans xmlns=&quot; <a href="http://wenwen.soso.com/z/urlalertpage.e?sp=shttp%3a%2f%2fwww.springframework.org%2fschema%2fbeans%22" target="_blank">http://www.springframework.org/schema/beans&quot;</a><br>xmlns:xsi=&quot; <a href="http://wenwen.soso.com/z/urlalertpage.e?sp=shttp%3a%2f%2fwww.w3.org%2f2001%2fxmlschema-instance%22" target="_blank">http://www.w3.org/2001/xmlschema-instance&quot;</a><br>xsi:schemalocation=&quot; <a href="http://wenwen.soso.com/z/urlalertpage.e?sp=shttp%3a%2f%2fwww.springframework.org%2fschema%2fbeans" target="_blank">http://www.springframework.org/schema/beans</a> <a href="http://wenwen.soso.com/z/urlalertpage.e?sp=shttp%3a%2f%2fwww.springframework.org%2fschema%2fbeans%2fspring-beans-2.0.xsd%22%3e" target="_blank">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd&quot;&gt;</a></strong></p> <p><br><strong>&nbsp;&lt;bean id="datasource"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;class="org.apache.commons.dbcp.basicdatasource"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&lt;property name="driverclassname"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;value="com.microsoft.jdbc.sqlserver.sqlserverdriver"&gt;<br>&nbsp;&nbsp;&lt;/property&gt;<br>&nbsp;&nbsp;&lt;property name="url"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value="jdbc:microsoft:sqlserver://localhost:1433;databasename=test"&gt;<br>&nbsp;&nbsp;&lt;/property&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name="username" value="sa"&gt;&lt;/property&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;property name="password" value="sa"&gt;&lt;/property&gt;<br>&nbsp;&lt;/bean&gt;<br>&nbsp;&lt;bean id="sessionfactory"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;class="org.springframework.orm.hibernate3.localsessionfactorybean"&gt;<br>&nbsp;&nbsp;&lt;property name="datasource"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;ref bean="datasource"&gt;&lt;/ref&gt;<br>&nbsp;&nbsp;&lt;/property&gt;<br>&nbsp;&nbsp;&lt;property name="hibernateproperties"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;props&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;prop key="hibernate.dialect"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;org.hibernate.dialect.sqlserverdialect<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/prop&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;prop key="hibernate.show_sql"&gt;true&lt;/prop&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;prop key="hibernate.format_sql"&gt;true&lt;/prop&gt;<br>&nbsp;&nbsp;&nbsp;&lt;/props&gt;<br>&nbsp;&nbsp;&lt;/property&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name="mappingresources"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;list&gt;</strong></p> <p><strong>&lt;!-- 这里主要是你注入的表的持久化对象的映射文件--&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;vo/account.hbm.xml&lt;/value&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;vo/employee.hbm.xml&lt;/value&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;vo/expriences.hbm.xml&lt;/value&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&lt;value&gt;vo/deptment.hbm.xml&lt;/value&gt;</strong></p> <p><strong>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&lt;/list&gt;<br>&nbsp;&nbsp;&lt;/property&gt;<br>&nbsp;&lt;/bean&gt;<br>&nbsp;&lt;bean id="dao" class="dao.empdao"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name="sessionfactory"&gt;<br>&nbsp; &lt;ref bean="sessionfactory"&gt;&lt;/ref&gt;<br>&nbsp; &lt;/property&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/bean&gt;<br>&lt;/beans&gt;</strong></p> <p><strong>详情请加qq:4&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp; 3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7</strong></p> <p><strong>如果,你觉得答案合理请点击采纳,举手之劳,能激励我继续为别人答题</strong></p>
在数据库 企业管理器中 可以查看当前连接salserver的用户信息 SQL Server 中类似的的当前连接session,可以查看 master 的sysprocess表 你先分离数据库在手工删除试试

sqlserver怎么查看哪些地方连接数据库了


文章TAG:数据  数据库  查看  哪些  数据库查看哪些访问  
没有了