Accessing PhpMyAdmin without cPanel login?

Q. How to access the database without its cPanel credentials?

This article will help you to access databases of cPanel users’ without accessing the cPanel account.

Consider the scenario, you’ve a cPanel account and you want to share the details of a database (DB) with one of your we site developers and  actually you do not want to share the cPanel credentials.

In normal cases, to access the PhpMyAdmin you need the cPanel login credentials. In this post Cr a solution for that problem. You can use the PhpMyAdmin package to access databases separately without knowing the account’s password

In cPanel, the default location for phpMyAdmin is:

This main user will have the privilege to access all the databases created under the cPanel account. In this topic, you will find out the way to grant MySQL database access outside the cPanel login.

Download its latest version!

Phymyadmin Latest version – Download

1. Download the stable version of PhyMyAdmin  (phpMyAdmin-4.x.x-english.tar.gz)

2. Upload the the tar file (ex: phpMyAdmin-4.x.x-english.tar.gz) into public folder of the shared account and extract it.

3. Rename the folder so that you can access it by an easy-to-remember URL.

The default URL should be look like:

Rename it to an easy link:

How to test?

Create a MySQL database and a database user.

You can create MySQL database and user for it from cPanel itself, under MySQL databases section.


I created crybit_phpMyAdmin db and crybit_phpAdmin user for testing purpose.

Access the PhyMyAdmin panel from your web browser

Now you can use the MySQL username (Eg. crybit_phpAdmin) and password to the access the assigned database (Eg. crybit_phpAdmin).



You will get a login prompt like the image below:

Once login success, you can manage the database like you deal via cPanel default PhpMyAdmin. Try it and let me know if you face any trouble.

That’s it! Thank you!

Related Links:
cPanel icon is missing from WHM’s List accounts option.
How to find the total number of connections for a cPanel domain from the log files.
cPanel is showing invalid login.

Arunlal Ashok

DevOps (Server & Cloud infrastructure) Engineer. I'm dealing Linux servers since 2012. I started this blog to share and discuss my ideas. Always happy for an open discussion! Write to arun (@) crybit (dot) com

You may also like...

66 Responses

  1. Dheeraj Thedijje says:

    Hi Arun, thanks alot for posting this, i was looking for this everywhere but i think everyone was saying own stuff and bla bla bla..
    Thanks alot, finally i can share single database to single user without sharing my cpanel 😀

  2. John Doe says:

    How do I access my database without the cpanel.

    I know what the username and password is. but it is different from the cpanel one.

    I have to access my database

    maybe something like telnet?

  3. email marketing says:

    thanks a lot

  4. AreDubya says:

    Thanks Arun! Helpful and to the point.

  5. mukul says:

    Hello Arun i m not find solution please explain me that how can i bring out db without using cpanel

  6. mukul says:

    when i type this url then it redirect me on my website ‘’;

  7. Akshay says:

    Thanks a lot Arun. (y)
    Your post is really helpful. And the explanation is also short and to the point.
    It saved my time. 🙂

  8. alain says:

    I did what you said, and when I go the site i get this.
    Not Found

    The requested URL /phpMyAdmin/ was not found on this server.
    thank, you.

  9. Amit Dutt says:

    Bravo Arun! you are such a genius man. I was searching this from last one year and you made it so easy. Thanks a bunch. I would require any other assistance then I will eat your brain. Arun you are awesome and deserve for beer(s) with me.

  10. John says:

    Thank you so much for this. You have been a great help!

  11. Yogendra Singh says:

    Hi Arun Lal,

    You are really great.. You solved my problem which I am trying to discover from 6 months.. I am really so much happy and thankful to you. It solve my biggest problem. Thanks a lot.. You are genius person.

  12. amit says:

    Thanks Arun…this was really helpful. Thanks for such a clear-cut solution.
    I have one question. please excuse if it is too stupid.
    I already have multiple DB’s installed on my server. I am owner of all of them. I need to share one of them to my developer. So, I’ll install the package.
    But, post completion of development, will I be able to UN-install the same without loosing my DBs.


  13. Ravi says:

    I have extracted the files and its saying that “PHP 5.3+ is required”
    Where do i install the php and how can i assign the user to this path

  14. azaleo says:

    How can i download the database without accessing cpanel/phpmyadmin.
    Is there a shortcut for this?

  15. Marcus says:

    For those having trouble accessing the link after uploading and renaming the folder. The URL is case sensitive. So if you just trimmed off the last few bits off of the folder but show phpMyAdmin then you have to type that exactly:

    In order to fix this simply rename the folder and make everything lowercase.

  16. SHAM says:

    Thank Arun. Great help.

  17. Meghal says:

    I am able to access the phpmyadmin page but when i enter the username and password there it says :
    ” Cannot log in to the MySQL server”

  18. Jina says:

    Thank you very much for your tutorial. It’s realy helpful to me. Thank you.

  19. Anirudh.B.S says:

    Thanks dude, you the real man 🙂

  20. Imran Buzdar says:

    i am very thankful to you Bro

  21. Arun. G Nair says:

    Very…. Very…… Thanks bro, this article is very good. Nice attempt and nice thought bro.
    Keep it up.

  22. Surya Prakash says:

    many many thanks you really helpfull

  23. Derin says:

    When accessing phpmyadmin using my domain like mydomain/phpadmin
    They are asking authentication.
    I can login.
    What or which username password should i use?
    It would be really helpfull thanku…

  24. Lokesh says:

    I have couple of websites. So can I upload the phpmyadmin folder in a sub folder.

  25. Sam Adcock says:

    I’ve done it to the exact instruction above but I’m getting the following when I got to

    Fatal error: Call to undefined function mb_detect_encoding() in /home/ on line 177

  26. Ali Haidar says:

    Thank you for this article, it was really helpful. It worked on one of my servers. But on the other server, I can reach the login screen, but when I login it keeps loading then gives me network or server error, as if it times out and it never works. Have you had such an issue before ? It would be great if you can help with this. Thanks again.

  27. Brindesh says:


    When I try to login, It redirect back to login screen without any message.

    Any reason?

  28. John says:

    The setup doesn’t create a I copied from a

    It works with or without the But everything is very slow. I have changed ‘localhost’ to ‘’. It doesn’t help either. Any idea?

  29. Zaid Kazi says:

    Thank you for the tutorial really helpful.
    However I cannot still ave access for a particular user.
    I made a new user from Mysql Database utility as you said.
    Also gave all the rights on the database but just cannot access it using phpmyadmin.
    Why so ? Please help

  30. Anggit Prayogo says:

    thanks, its work so well. but how to logout after succesfully login into my phpmyadmin?

  31. Thoufiq says:

    Hi Arun,
    Thanks a lot for this tutorial.

  32. Machindra says:

    Thank you Arun you saved my time, want to ask one thing,
    can we directly connect database(which is in mySQL on server) using username and password in my website or application??

  33. Mads says:

    I am getting this error. This page isn’t working is currently unable to handle this request. HTTP ERROR 500

Leave a Reply

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