Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Can't connect to LimeSurvey database

Can't connect to LimeSurvey database 4 years 2 months ago #82115

  • sakeer
  • sakeer's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
I am getting an error message like this,

Can't connect to LimeSurvey database. Reason: Access denied for user 'samec'@'localhost' (using password: YES)
The administrator has disabled public write access.

Can't connect to LimeSurvey database 4 years 2 months ago #82119

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1805
  • Thank you received: 445
  • Karma: 111
I suppose it's a new installation...Is it really a local one ('localhost') ?

Check your config.php file...
You probably have indicated something wrong (in minimum) at 1 of those following lines:

$databasetype =

$databaselocation =
$databasename =
$databaseuser =
$databasepass =

// File Locations
$rooturl =


Ben/
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
Last Edit: 4 years 2 months ago by Ben_V.
The administrator has disabled public write access.

Can't connect to LimeSurvey database 4 years 2 months ago #82128

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5984
  • Thank you received: 368
  • Karma: 260
This is not a Limesurvey issue but a DB rights issue. The user you have specified at the config.php file seems to have insufficient rights.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.282 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form