for Ubuntu 20.04.1 LTS - CyberPanel v2.03
Please try go to SSH , run following commands
MYSQL_PWD=cat /etc/cyberpanel/mysqlPassword mysql -uroot
to enter mysql command line
use cyberpanel;
to enter cyberpanel database,
UPDATE loginSystem_administrator SET twoFA = ‘0’ WHERE loginSystem_administrator.id = 1;
force off 2FA for admin account.
total output should be like below:
[root@test ~]# MYSQL_PWD=cat /etc/cyberpanel/mysqlPassword mysql -uroot
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 4526
Server version: 10.5.7-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
MariaDB [(none)]> use cyberpanel;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A