mysql密码过期导致连接不上mysql_MySQL
Jun 01, 2016 pm 01:24 PM
bitsCN.com
mysql密码过期了,今天遇到了连接mysql,总是连接不上去,
错误现象1:
An attempt by a client to checkout a Connection has timed out
第一次出现连接超时错误,第一反应是去修改cpool.checkoutTimeout参数为18000,初始为500,结果还是错误,
在修改为36000,并且加大了c3p0连接数cpool.maxPoolSize=100
这个时候出现下面错误现象2
Connections could not be acquired from the underlying database!
一直没有定位出来,靠,突然想起,以前Oracle 11g的密码存在过期的问题,mysql会不会也有呢,试试,如何做不多写,见我的博客
http://blog.csdn.net/dracotianlong/article/details/8100235
修改完毕后,重启mysql和tomcat,搞定了。估计是虚拟机的原因,google了下,没有找到比较官方的说明。bitsCN.com

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP's big data structure processing skills

How to optimize MySQL query performance in PHP?

How to easily get the WiFi password of a connected mobile phone (quickly find the WiFi password saved in the mobile phone)

How to use MySQL backup and restore in PHP?

What should I do if my Win10 password does not meet the password policy requirements? What to do if my computer password does not meet the policy requirements?

How to insert data into a MySQL table using PHP?

What are the application scenarios of Java enumeration types in databases?

How to fix mysql_native_password not loaded errors on MySQL 8.4
