문제

I am trying to use CAS server locally with my local DB, however I keep getting could not get jdbc connection nested exception error. I have my deployerconfigcontext setup in the followig way

 <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
    <property name="driverClassName">
        <value>com.mysql.jdbc.Driver</value>
    </property>
    <property name="url">
        <value>jdbc:mysql://127.0.0.1:3306/usermanagement</value>
    </property>
    <property name="username">
        <value>root</value>
    </property>
</bean>

The full error i get is

Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory <Access denied for user 'root'@'localhost'<using password:NO>>
도움이 되었습니까?

해결책

Added the password for root user, solved the problem

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top