What is My root Password for MySQL Database Server?

Q. What is my root password for MySQL under CentOS Linux 5.0 server?

A.. There is no default password (empty password) for MySQL database server. You need to assign root password after installing MySQL via yum / rpm command.

Some admin set the root password same as the server root password.

If you are using special control panel software such as Plesk then use “admin” and the admin password. Use mysql command to connect to mysql server.

You can alway reset forgotten mysql root password.


🐧 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
  • Nilesh Mar 20, 2008 @ 11:52

    Applicable to all OSes. Not only CentOS.

  • varunkumar May 16, 2014 @ 7:06

    i don’t know root password what is root password?

  • varunkumar May 16, 2014 @ 7:09

    i don’t know root password what is root password?
    what is my root password for mysql in windows7

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