Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trying to connect to sql database #9739

Closed
mem811 opened this issue Feb 9, 2016 · 4 comments
Closed

trying to connect to sql database #9739

mem811 opened this issue Feb 9, 2016 · 4 comments
Labels
answered For when a question was asked and we referred to forum or answered it.
Milestone

Comments

@mem811
Copy link

mem811 commented Feb 9, 2016

I am desperately trying to connect to my sql database without luck. I either get "Error while trying to connect to the database server: SQLSTATE[HY000] [2002] Connection refused" when i leave the database server as 127.0.0.1 or I get "Error while trying to connect to the database server: SQLSTATE[HY000] [2002] No such file or directory" when i change the database server to local host. I am at a loss. I have no clue what else I can do.

@tsteur
Copy link
Member

tsteur commented Feb 10, 2016

Are you sure MySQL is installed and running? Do you know on which host it is listening?

@gaumondp
Copy link

May I suggest you install the very light yet powerful Adminer script. If this works, then it's a Piwik problem but if Adminer doesn't work then you have some error in your access.

https://www.adminer.org/

Adminer is like phpMyAdmin but 300 kB instead of 22 MB... Way more secure too...

@mattab mattab closed this as completed Mar 31, 2016
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Mar 31, 2016
@mattab mattab added this to the 2.16.1 milestone Mar 31, 2016
@kvordf
Copy link

kvordf commented Apr 18, 2017

Was this issue every solved? I have the same error but insteading of using Adminer to test, I was able to connect to the database using MySQL Workbench. Is that an accurate test?

Thanks

@KiraSokolov
Copy link

After i added plugin DBStats, i have Connection refused error at all pages of script :c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

6 participants