What is my root password for MySQL?

Q. I have just installed mysql. I don’t know how to connect as well as what is my root or mysql admin password for MySQL?

A. Your default mysql password is empty (i.e. no password). For example:

  • Username: root
  • Password: empty

However if you use something like Plesk software use following information:

  • User: admin
  • Password: admin

Above is just a default password. If you are not sure about password, it is best to ask to person who has installed mysql for you.


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 3 comments so far... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
3 comments… add one
  • muthuselvan Nov 19, 2007 @ 12:23

    I have forgot the root passwd pls help if i edit i am getting the following details
    kernel /boot/vmlinuz-2.4.22 ro root=LABEL=/
    initrd/boot/initrd -2.4.22.img
    pls help

  • Dave H Dec 10, 2007 @ 20:31

    Nice. I just got gifted a database in which NO-ONE knows the root password. I shall now have to scour the web to find a way around it. Just thought you should know that you’re not alone.

  • vivek Jun 26, 2010 @ 4:49

    my sql is the best known database … then why is there to reset the password of the database … it can be a big security risk.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum