LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-10-2012, 10:09 AM   #1
jayakumar01
Member
 
Registered: Nov 2011
Posts: 106

Rep: Reputation: Disabled
Error while changing off mysql password


[root@bmw ~]# mysql -uroot -pecare2@
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> UPDATE user SET Password=PASSWORD(‘newrootpassword’) WHERE User=’root’;
ERROR 1046 (3D000): No database selected
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> UPDATE user SET Password=(‘welcome2@’) WHERE User=’root’;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '��newrootpassword’) WHERE User=’root’' at line 1
mysql>

Last edited by jayakumar01; 01-10-2012 at 10:10 AM.
 
Old 01-10-2012, 10:18 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,474

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
RTFS Error:

Yours - WRONG
Code:
UPDATE user SET Password=(‘welcome2@’) WHERE User=’root’;
Right
Code:
UPDATE user SET Password=PASSWORD(‘welcome2@’) WHERE User=’root’;
RTFM - http://dev.mysql.com/doc/refman/5.0/...-password.html
 
1 members found this post helpful.
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql error while changing mysql password jsaravana87 Linux - Server 5 09-08-2011 11:57 PM
Mysql not starting after changing mysql admin password in fedora prastal Linux - Newbie 1 02-20-2010 07:26 PM
Mysql problem: after changing root password, cannot start onboot Swakoo Linux - General 3 09-18-2007 04:37 AM
MySQL not starting after changing root password Temujin_12 Linux - Software 3 05-19-2006 10:40 AM
screwed up mysql by changing password, help! JustinHoMi Linux - General 0 01-28-2002 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration