nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

MySQL - changing password

This is a discussion on MySQL - changing password within the Databases servers forums, part of the Mastering Servers category; Hi folks, I ran; Code: mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON mail.* TO 'mail_admin'@'localhost' IDENTIFIED BY 'oldpassword'; creating password ...


Go Back   nixCraft Linux Forum > Mastering Servers > Databases servers

Linux answers from nixCraft.


Databases servers Discussions of databases of all types - especially MySQL.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 21-10-2008, 05:06 PM
Senior Member
User
 
Join Date: Sep 2007
OS: Debian
Posts: 112
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 3
satimis is on a distinguished road
Default MySQL - changing password

Hi folks,


I ran;

Code:
mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON mail.* TO 'mail_admin'@'localhost' IDENTIFIED BY 'oldpassword';
creating password


Now I need changing its password whether to run;
Code:
mysql> UPDATE user SET password=PASSWORD('newpassword') WHERE user="'mail_admin'@'localhost'";
Then where to put mail.* ? It is NOT a database.


TIA


B.R.
satimis
Reply With Quote
  #2 (permalink)  
Old 03-03-2009, 02:01 AM
Junior Member
User
 
Join Date: Mar 2009
OS: RedHat
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
benianil is on a distinguished road
Post Password change

Dear
mail.* is mail=database name
*=any table in mail database.

Command is very right , what you are doing is changing password of the user who is having given permissions on this database and the anything else.
Keep it up.


Regards
anil
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Change root password MySQL 5 chiku Databases servers 1 16-01-2007 08:46 PM
Mysql set root password howto Databases servers 1 04-01-2007 11:45 PM
HP UX user lock password, change password, password aging rockdalinux HP-UX 0 20-12-2006 02:36 PM
Changing password at first login. Linux sbhupathireddy Linux software 1 05-07-2006 12:29 PM
changing dir sparky Shell scripting 8 30-03-2006 03:14 AM


All times are GMT +5.5. The time now is 04:19 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38