Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

Error while trying to connect to the database server:SQLSTATE[HY000] [2002] Connection refused (no replies)

$
0
0
Hi Experts,

I am trying to install Piwik in my environment. All pre-requisite packages are installed and the system check was success as well.
I was guided to next step which is database setup.Eventhough my db is up my piwik database test is unsuccessfull. I am getting the below error.any idea how to fix the issue

Error

Error while trying to connect to the database server:
SQLSTATE[HY000] [2002] Connection refused

Database Server : localhost

/etc/init.d/mysqld status
mysqld (pid 25320) is running...



150627 8:43:16 InnoDB: Started; log sequence number 0 43655
150627 8:43:16 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.95' socket: '/opt/mysql/mysql.sock' port: 3306 Source distribution

(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 25320/mysqld


Piwik version 2.13.0

cat /etc/my.cnf
[mysqld]
datadir=/opt/mysql
socket=/opt/mysql/mysql.sock
bind-address=localhost
user=mysql

Viewing all articles
Browse latest Browse all 4243

Trending Articles