Turnkey Linux Container Passwords Screwed Up?

verulian

Renowned Member
Feb 18, 2019
203
40
68
45
I'm having some trouble with the Nginx PHP FastCGI Turnkey Linux container (https://www.turnkeylinux.org/nginx-php-fastcgi). It appears that the default root password is set to the password that's set during container setup, but Adminer's password doesn't seem to be set. From what I'm reading this should be set somewhere, but the default password just isn't working.

When I also run `mysqladmin -u root password MY_NEW_PASSWORD` I can't use that either to get into Adminer.

I read that running `mysqlconf.py` should be able to reset it, ie:
$ /usr/lib/inithooks/bin/mysqlconf.py

But I get this error in this Proxmox container:
Traceback (most recent call last):
File "/usr/lib/inithooks/bin/mysqlconf.py", line 24, in <module>
import pymysql
ModuleNotFoundError: No module named 'pymysql'


Any ideas about what to do here to get the right password to use Adminer?
 
hi,

try apt install python-pymysql and run the python script again
 
were you able to solve your issue?
 
Hello, I am seeing the same issue.
Tried deploying TurnKey NGINX PHP FastCGI Server however unable to login to adminer

Inloggen Access denied for user 'adminer'@'localhost' (using password: YES)

I have tried the above "try apt install python-pymysql and run the python script again"

root@S1-RG-EU-01 .../inithooks/bin# apt install python-pymysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pymysql is already the newest version (0.9.3-1).
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.


root@S1-RG-EU-01 .../inithooks/bin# ./mysqlconf.py
Traceback (most recent call last):
File "./mysqlconf.py", line 24, in <module>
import pymysql
ModuleNotFoundError: No module named 'pymysql'

Thanks
Ryan
 
Hello, I am seeing the same issue.
Tried deploying TurnKey NGINX PHP FastCGI Server however unable to login to adminer

Inloggen Access denied for user 'adminer'@'localhost' (using password: YES)

I have tried the above "try apt install python-pymysql and run the python script again"

root@S1-RG-EU-01 .../inithooks/bin# apt install python-pymysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pymysql is already the newest version (0.9.3-1).
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.


root@S1-RG-EU-01 .../inithooks/bin# ./mysqlconf.py
Traceback (most recent call last):
File "./mysqlconf.py", line 24, in <module>
import pymysql
ModuleNotFoundError: No module named 'pymysql'

Thanks
Ryan
hi,

check if the python script should run with python2 or python3, maybe you need the other one