Home > Database > Mysql Tutorial > mac eclipse启动maven项目时候链接不上本机的mysql数据库

mac eclipse启动maven项目时候链接不上本机的mysql数据库

WBOY
Release: 2016-06-06 09:38:52
Original
1446 people have browsed it

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>
Copy after login

数据库配置

<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>
Copy after login

图片说明

报错信息

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template