FeaturesWP CloudPricingEE CLIContactMy Account

Features

Team Access & User Permissions

Server Setup & Management

Site Creation & Management

Deployments & Developer Tools

Firewall Protection

Speed & Caching

Backups & Recovery

Logs & Monitoring

Create WP Cloud Sites

All Features

Read Documentation

Install

Installation Guide

FAQ

Roadmap

Explore EE CLI

Resources

Commands

Handbook

Blog

Community

Forum

EasyExperts

Tutorials

Subscribe

Github

CLEAR

Start For Free

separator Tutorials separator Mysql separator Reset MySQL root password

Topics

On this page

Below are commands:

Test:

Reset MySQL root password

Below are commands:


			service mysql stop
mysqld_safe --skip-grant-tables > /dev/null 2>&1 &  
mysql -u root -e "use mysql; update user set password=PASSWORD('NEW-PASSWORD') where User='root'; flush privileges;"
service mysql restart
		

Note: You may need to wait after mysqld_safe command, before you can run subsequent mysql command.

Test:


			mysql -u root -pNEW-PASSWORD
		

(Credit: NixCraft)

MySQL Query Profiling

PREVIOUS

tuning-primer.sh – an alternative for mysqltuner

NEXT


Features

Useful Links

Product

Other Products

Subscribe for curated product updates, tips, and announcements.

"*" indicates required fields

Instagram

This field is for validation purposes and should be left unchanged.

Email*

SIGN ME UP

Δ


© rtCamp, since 2009. All rights reserved.

Powered by