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

3 مرّات مشاهدة
التخطي إلى أول رسالة غير مقروءة

deevan shafait

غير مقروءة،
03‏/09‏/2021، 6:55:16 ص3‏/9‏/2021
إلى 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

غير مقروءة،
07‏/09‏/2021، 8:10:45 ص7‏/9‏/2021
إلى 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

غير مقروءة،
10‏/09‏/2021، 5:15:46 ص10‏/9‏/2021
إلى 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

الرد على الكل
رد على الكاتب
إعادة توجيه
0 رسالة جديدة