Welcome, Guest
Username: Password: Remember me

TOPIC: Database Port - $databaselocation

Database Port - $databaselocation 2 years 2 months ago #72810

  • spessex
  • spessex's Avatar
  • OFFLINE
  • Silver Donor
  • Posts: 21
  • Karma: 0
Hi

I've looked everywhere and cannot seem to find anything on this.

Basically my database sits on port 3307. How do I tell Lime Survey this in the config.php file?

At the moment I'm considering the following:

$databaselocation = 'localhost:3307/(folder_location_address)';

Am I on the right lines here or there a hidden variable for port location?

Thank you

Stephen
The administrator has disabled public write access.

Re: Database Port - $databaselocation 2 years 2 months ago #72812

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5838
  • Thank you received: 714
  • Karma: 222
Hello,

No hidden , all variable is in config-defaults.php.

ANd this one is
[code type=php-brief]$databaseport = 'default'; // The port of your Database - if you use a standard port leave on default[/code]
The administrator has disabled public write access.

Re: Database Port - $databaselocation 2 years 2 months ago #72815

  • spessex
  • spessex's Avatar
  • OFFLINE
  • Silver Donor
  • Posts: 21
  • Karma: 0
Thanks so much for this. I hadn't realised that this file existed and was editing the config.php file.

Out of interest should I need to change anything else in this config-defaults.php file only I didn't notice this in the instructions?

Thank you

Stephen
The administrator has disabled public write access.

Re: Database Port - $databaselocation 2 years 2 months ago #72816

  • spessex
  • spessex's Avatar
  • OFFLINE
  • Silver Donor
  • Posts: 21
  • Karma: 0
Sorry guys just seen

docs.limesurvey.org/Optional+settings&st...tions+for+LimeSurvey

Don't know how I missed this!
The administrator has disabled public write access.

Re: Database Port - $databaselocation 2 years 2 months ago #72843

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5278
  • Thank you received: 289
  • Karma: 246
You're welcome!

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.

Re: Database Port - $databaselocation 2 years 2 months ago #72934

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5838
  • Thank you received: 714
  • Karma: 222
spessex wrote:
Out of interest should I need to change anything else in this config-defaults.php file only I didn't notice this in the instructions?
NEVER change config-default file,

Config-default include config at the end, then the configuration are keep at the update. And new config functionnality are in config-default :).

It's more an 'all config option' possible.

Denis
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.115 seconds
Donation Image