How to Change MySQL Root/User Password

If you have installed MySQL yourself and have never set a root password, you can do so by running this command via SSH:

# mysqladmin -u root password NEWPASSWORD

To update your MySQL root password from an existing password, use the following (the default MySQL password in our LAMP templates is "host2=="):

# mysqladmin -u root -p'oldpassword' password newpass

To update the password of a user besides root:

# mysqladmin -u vivek -p oldpassword password newpass

  • payment
  • 0 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

How to Setup LAMP on Debian/Ubuntu VPS

LAMP  is a webserver software stack common on Linux servers (LAMP stands for Linux – Apache –...

How to Install and Setup LAMP on CentOS VPS

LAMP (Linux - Apache - MySQL - PHP) is a common webserver software stack for Linux. Installing...

How to Import/Export MySQL Databases with SSH

To export a MySQL database, access your VPS via SSH and run:   # mysqldump -u username -p...

Powered by WHMCompleteSolution