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.

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

Recent Post

Unlock the Right Solutions with Confidence

At CloudSpinx, we don’t just offer services - we deliver clarity, direction, and results. Whether you're navigating cloud adoption, scaling infrastructure, or solving DevOps challenges, our seasoned experts help you make smart, strategic decisions with total confidence. Let us turn complexity into opportunity and bring your vision to life.

Leave a Comment

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

Related Post

Nagios is a powerful open source IT monitoring tool. It monitors the entire IT infrastructure, ensuring that all systems, applications, […]

If you’re looking for the best Docker alternatives used in modern container management, then this brief article is for you. […]

Apache Tomcat is a free and open-source implementation of the Java Servlet and Server page container. It enables developers to […]

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.