Hi, 

mysql-ds.xml look like this:



  <local-tx-datasource>
    <jndi-name>DefaultDS</jndi-name>
    <connection-url>jdbc:mysql://localhost:3306/citydb</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>jboss</user-name>
    nrtpos

      <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml 
(optional) -->
      
         <type-mapping>mySQL</type-mapping>
      
  </local-tx-datasource>




I use mysql --user=jboss --password=nrtpos, it can connect to database.
I also try to neglect port 3306, it got same error.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865608#3865608

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865608


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to