Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY

Go Back   Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY > CentOS Việt Nam - Viet Nam Linux CentOS Community > Cài đặt CentOS và ứng dụng > MySQL trên CentOS

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-07-2008
sieuhosting's Avatar
Moderator
 
Join Date: Jul 2008
Posts: 75
Thanks: 7
Thanked 3 Times in 3 Posts
Talking Đổi password, set password trong mySQL command

cách đổi rất đơn giản
Code:
mysql> use mysql; update user set Password=PASSWORD('new_pass') WHERE User='ten_user';
Nếu tài khoản có quyền root th́ có thể set passwd cho bất kỳ ai

Code:
mysql> mysql --user=root --pass mysql
Enter password:
mysql> SET PASSWORD FOR 'root'@'%' = PASSWORD('new_pass');
mysql> flush privileges;
Nếu muốn đổi passwd của chính user login đó th́ chỉ cần gơ:
HTML Code:
mysql>SET PASSWORD = PASSWORD('pass-mới');
Reset password của root - MySQL trên Windows - Linux

Last edited by Lovelinux; 12-09-2008 at 12:53 PM.
Reply With Quote
Reply

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reset password của root - MySQL trên Windows - Linux sieuhosting MySQL trên CentOS 2 15-07-2008 12:25 PM


All times are GMT +1. The time now is 12:06 PM.


© Diễn đàn HackingArt (HA) được xây dựng và phát triển bởi các thành viên.
+ Diễn đàn HackingArt là nơi trao đổi của các webmaster chuyên nghiệp.