NHibernate出现could not execute query问题

今天在调试代码时工程总报错,提示could not execute query xxxxxxxxxxxxxxxxxxxxxxxxxxx数据库

找了好久,最终同事发现是数据库链接配置文件的问题。session

  <hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2" >
    <session-factory name="NHibernate.Test">
      <property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property>
      <property name="connection.connection_string">
        Server=192.168.0.2;Database=dbName;User ID=root;Password=123456;</property>
      <property name="dialect">NHibernate.Dialect.MySQLDialect</property>
      <property name="hbm2ddl.keywords">none</property>
    </session-factory>
  </hibernate-configuration>

  将Password写成123了,其实是123456.hibernate

相关文章
相关标签/搜索