집 >데이터 베이스 >MySQL 튜토리얼 >mac eclipse启动maven项目时候链接不上本机的mysql数据库
mysqlmaceclipsemaven数据库
这是本机mysql的用户,host都试了。
<code> _driverClassName=com.mysql.jdbc.Driver_url=jdbc:mysql://127.0.0.1:3306/db_qoniu_nobeg?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull_userName=qoniu_nobeg_passWord=qoniu_nobeg_dbmaxActive=100maxIdle=30maxWait=500defaultAutoCommit=true</code>
数据库配置
<code> <bean name="dataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close"> <property name="url" value="${_url}"></property> <property name="username" value="${_userName}"></property> <property name="password" value="${_passWord}"></property> <property name="initialSize" value="1"></property> <property name="maxActive" value="20"></property> <property name="minIdle" value="1"></property> <property name="maxWait" value="60000"></property> <property name="validationQuery" value="false"></property> <property name="testOnBorrow" value="false"></property> <property name="testOnReturn" value="false"></property> <property name="testWhileIdle" value="true"></property> <property name="timeBetweenEvictionRunsMillis" value="60000"></property> <property name="minEvictableIdleTimeMillis" value="25200000"></property> <property name="removeAbandoned" value="true"></property> <property name="removeAbandonedTimeout" value="1800"></property> <property name="logAbandoned" value="true"></property> <property name="filters" value="mergeStat"></property> </bean></code>
报错信息