Where is Directadmin admin password and MySQL password?

The installation of DirectAdmin is automated and you don’t get to do much customizations at the time of setting it up.

As a security best practice you should store Directadmin admin password and MySQL root user password in a secure location not easy to locate text files. If you already lost the login credentials, use the following procedure to locate them.

Login to Directadmin server.

ssh root@ServerIP

Check the contents of /usr/local/directadmin/scripts/setup.txt file.

$ cat /usr/local/directadmin/scripts/setup.txt
adminname=admin
adminpass=dfXdgMk8y9DOBk2G5A
[email protected]
hostname=osting.example.com
ip=192.168.1.34
ns1=ns1.hosting.example.com
ns2=ns2.hosting.example.com
mysql=jw6cWtOLnn7

You can also use:

cat /usr/local/directadmin/conf/setup.txt

For MySQL, root user password is also available on:

cat /usr/local/directadmin/conf/my.cnf
cat /usr/local/directadmin/conf/mysql.conf

To login to DirectAdmin Web Control Panel access it on https://ServerIP:2222.

For MySQL login to its console using:

$ mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 385
Server version: 10.6.16-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)]>

You can try query some database parameters as test.

MariaDB [(none)]> SHOW VARIABLES LIKE 'innodb_buffer_pool_size';
+-------------------------+------------+
| Variable_name           | Value      |
+-------------------------+------------+
| innodb_buffer_pool_size | 2147483648 |
+-------------------------+------------+
1 row in set (0.001 sec)

MariaDB [(none)]> SELECT @@innodb_buffer_pool_size;
+---------------------------+
| @@innodb_buffer_pool_size |
+---------------------------+
|                2147483648 |
+---------------------------+
1 row in set (0.001 sec)

Contact us now for any support related work.

Your IT Journey Starts Here!

Ready to level up your IT skills? Our new eLearning platform is coming soon to help you master the latest technologies.

Be the first to know when we launch! Join our waitlist now.

Join our Linux and open source community. Subscribe to our newsletter for tips, tricks, and collaboration opportunities!

Recent Post

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Post

Let’s clarify the differences between merge requests (commonly called pull requests in GitHub), releases, release candidates (RCs), tags, and branches […]

Kind (which in full means “Kubernetes IN Docker”), is a command line tool that enables you to run Kubernetes clusters […]

Are you looking for an easy way to migrate packages from one cPanel server to a new cPanel server? In […]

Let's Connect

Unleash the full potential of your business with CloudSpinx. Our expert solutions specialists are standing by to answer your questions and tailor a plan that perfectly aligns with your unique needs.
You will get a response from our solutions specialist within 12 hours
We understand emergencies can be stressful. For immediate assistance, chat with us now

Contact CloudSpinx today!

Download CloudSpinx Profile

Discover the full spectrum of our expertise and services by downloading our detailed Company Profile. Simply enter your first name, last name, and email address.