Skip to content

Shkodenko Taras

web development and system administration of Linux

  • Drawing
  • PHP Mentorship Program
  • Privacy Policy
  • About

MySQL change password for user

February 20, 2013July 15, 2013 ~ tadmin

To change password in MySQL log in to mysql as root user:

$ mysql -h localhost -u root -p

mysql> UPDATE mysql.user SET Password=PASSWORD(‘new_db_password’) WHERE User=’db_user_name’ AND Host=’db_host’;
mysql> FLUSH PRIVILEGES;
mysql> quit;

Share This Blog Post

Posted in MySQL | MariaDB MySQL

Published by tadmin

View all posts by tadmin

Post navigation

‹ PreviousLinux log out ssh user automatically
Next ›Linux: enable or disable PHP APC opcode cache for virtual host

Support My Work!

Categories

  • Apache
  • CMS
  • Docker
  • Drupal
  • Git
  • Laravel
  • Lean
  • Linux
  • macOs
  • Magento
  • MySQL | MariaDB
  • Nginx
  • PHP
  • Pimcore CMS
  • Plesk
  • PostgreSQL
  • Server configuration
  • Symfony
  • Uncategorized
  • WordPress
  • Yii2
DigitalOcean Referral Badge

Tags

.htaccess Apache archive array bash certificate composer diff docker Drupal ffmpeg find git git best practices grep IPTables Laravel Laravel best practices Laravel tips Linux Linux file management MySQL mysqldump Odin openssl PHP PHP development Pimcore Plesk PostgreSQL ProFTPD script Security sed shell software development ssh ssl Symfony system administration tar ubuntu web development wordpress zip

Donations

You can support this project if you like what I'm writing

Recent Posts

  • How to create a simple IP address tracker with geolocation in Symfony 6+
  • How to Open Unverified Apps on macOS: MarkText Example
  • What is Docker and Why Developers Should Care
  • Service Classes in Laravel: Clean Architecture and Scalability
  • 🧭 What is Symfony? And How Is It Different from Laravel?
  • Laravel Facades Uncovered: Convenient, but Always Safe?
  • 🎧 How to Convert and Combine Multiple iPhone .m4a Audio Files into One .mp3 on Linux using ffmpeg

Search

  • GitHub
  • YouTube
  • Telegram
  • Patreon
  • Instagram
  • Pinterest
Download Dropbox for your computer and get 500 MB
Proudly powered by WordPress ~ Theme: Shcom-child by Taras Shkodenko.