Setting up Numbas LTI using MySQL - how to specify port number?

3 views
Skip to first unread message

deevan shafait

unread,
Sep 3, 2021, 6:55:16 AM9/3/21
to Numbas Users
Hi,

I need help with connecting to a MySQL database running on a non-standard (3306) port. How do I specify the port when running the setup script? 

python first_setup.py

Thanks,

Naveed

Christian Lawson-Perfect

unread,
Sep 7, 2021, 8:10:45 AM9/7/21
to numbas...@googlegroups.com
Hi Naveed,
There isn't a question for this in the setup script, but you can edit the file numbasltiprovider/settings.py afterwards, and change the settings under DATABASE, adding a line
 
   'PORT': 3306,

See the Django documentation for the settings that are available: https://docs.djangoproject.com/en/3.2/ref/settings/#databases

--
You received this message because you are subscribed to the Google Groups "Numbas Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numbas-users...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/numbas-users/bdb2a140-cb65-43f7-a103-de9e22f412f2n%40googlegroups.com.

deevan shafait

unread,
Sep 10, 2021, 5:15:46 AM9/10/21
to numbas...@googlegroups.com
Hi Christian,

Thanks, that works.

It would be useful to have the option to select the database port during the installation process.

Naveed

Reply all
Reply to author
Forward
0 new messages