Page 1 of 2
Could not connect to MYSQL database
Posted: Thu Dec 13, 2012 6:43 pm
by vinman57
Script URL:
http://www.pianowizardacademy.com/helpdesk
Version of script: 421
URL of phpinfo.php:
http://pianowizardacademy.om/phpinfo.php
URL of session_test.php:
http://pianowizardacademy.com/session_test.php
Write your message below:
I keep getting this error when I go the SETTING PAGE (below test your connection)
Code: Select all
Error: Could not connect to MySQL database using provided information! Please double-check your database settings
MySQL said: Access denied for user 'Administrator'@'localhost' (using password: YES)
I've been getting this a lot (though intermittant since the LAST update prior to 4.2.1.)
As I proceed with the other tabs in the admin area, the message above goes away. Aside from this, the program is functional
thanks
Re: Could not connect to MYSQL database
Posted: Fri Dec 14, 2012 1:35 pm
by Klemen
Could you take a screenshot of the error please and post it here?
In settings, is Debug mode ON or OFF?
Re: Could not connect to MYSQL database
Posted: Fri Dec 14, 2012 10:05 pm
by vinman57
As I mentioned, it happens intermittently - again today, but before I could get a screenshot it resolved itself again.
I'll get one to you next time it happens.
Re: Could not connect to MYSQL database
Posted: Sat Dec 15, 2012 4:08 pm
by Klemen
This could be an issue with too many MySQL connections on the server - for example if your host has too many websites using MySQL on the server and the MySQL maximum number of connections limit is reached.
It's just a guess, if you do get a screenshot please let me know.
Re: Could not connect to MYSQL database
Posted: Sat Dec 15, 2012 4:15 pm
by Klemen
Also, if you enable Debug mode (Settings > Help desk tab > Features > Debug mode: ON) it should give more information on the issue.
When you have the screenshot or an extended error message turn debug mode back to off.
Re: Could not connect to MYSQL database
Posted: Sun Dec 16, 2012 1:31 am
by vinman57
Ok it happened again today
Screenshot at
www.pianowizardacademy.com/hesk.jpg
(all the fields are actually filled in, I just blocked them out for the screenshot)
Debug mode was enabled, but nothing shows.
As usual, when I go to the other tabs, as I go back and forth the
issue resolves itself and it says connection successful.
Re: Could not connect to MYSQL database
Posted: Sun Dec 16, 2012 9:08 am
by Klemen
Does the error show when you press the "Test MySQL connection" button or does it appear when you open the settings page without clicking any test buttons?
When the error shows if you then click "Test MySQL connection" does it resolve itself?
Re: Could not connect to MYSQL database
Posted: Sun Dec 16, 2012 1:45 pm
by vinman57
No, it just refreshes the same error.
So next, I click the next tab - "Help Desk" - and click save changes. Again, the error.
I click Save changes again, it works
go back to the General tab, error is gone, and test provides successful connection.
Re: Could not connect to MYSQL database
Posted: Mon Dec 17, 2012 3:25 pm
by Klemen
Do you get the same problem, if you use unmodified Hesk files (original files without any changes or custom headers/footers)?
Re: Could not connect to MYSQL database
Posted: Mon Dec 17, 2012 4:41 pm
by vinman57
Sorry, I wouldn't know as I have only used it with the header/footer.
Re: Could not connect to MYSQL database
Posted: Fri May 10, 2013 6:30 am
by lupolo
Have the same problem.
Wenn trying to save settings within Hesk.
--->
Fout:
Kan geen connectie maken naar de MySQL database! Controleer goed je database-instellingen
MySQL zegt: Access denied for user 'MySQL'@'localhost' (using password: YES)
WAARSCHUWING
Debug mode staat aan. Overtuig jezelf ervan dat debug mode uit staat wanner je HESK helemaal ge�nstalleerd hebt en in gebruik neemt.
The strange thing is that i could edit tickets, or search them.
It's after i upgrade to a IIS server, have modified the rights to the php file and upload folder.
Re: Could not connect to MYSQL database
Posted: Fri May 10, 2013 3:04 pm
by Klemen
That message means PHP cannot connect to MySQL using the details you provided.
It's a configuration issue, not something I can help with.
Re: Could not connect to MYSQL database
Posted: Fri May 10, 2013 5:05 pm
by lupolo
But why does every thing else works? Exept wenn saving the settings.
So the ticket its self work, only wenn saving settings.
Re: Could not connect to MYSQL database
Posted: Fri May 10, 2013 6:16 pm
by vinman57
I still get it too. The only workaround I have found it to select the next tab, then click the Save button, and now the connection works - then I go back to the tab I wanted to have the content changed and it works from there during the rest of that session. I have no idea why.
Re: Could not connect to MYSQL database
Posted: Sat May 11, 2013 8:01 am
by Klemen
Can you make another screenshot of the error (so I see exactly where it happens) and exact steps to reproduce?
Does the same thing happen with original HESK files and English language file?
Also, please let me know again details of where is HESK installed (server type, PHP version, MySQL version, ...) and what browser you are using (the links you posted originally don't work anymore).