If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > mysql password problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-10-04, 04:02
varala_kanth varala_kanth is offline
Registered User
 
Join Date: Dec 2003
Location: hyderabad
Posts: 2
mysql password problem

hello friends,

iam using mysql 3-23 version

and conncetion to mysql as mysql -p

and it asks for the password

when i press enter

then it connects to the database

so it s not taking any password

now i want to give password

i tried to directly insert into the user table of mysql database

so i tried to insert statement as follows

"inster into user (Password) values('admin') where User='root';

but its giveing error

so how to proceed from here

with mysqladmin utility can we set the password to some word from empty space



with regards
rama kanth
Reply With Quote
  #2 (permalink)  
Old 06-10-04, 07:16
Ryker Ryker is offline
Registered User
 
Join Date: Nov 2003
Location: Sussex, England
Posts: 404
mySQL Password

"inster into user (Password) values('admin') where User='root';

Two things:

"inster" should be "insert"

and

It should'nt be an insert statement but an update:

"UPDATE user SET Password = 'admin' WHERE user = 'root'"

or something similar to that.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On