Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem setting up new User 1

Status
Not open for further replies.

mhamilton3

Programmer
Oct 31, 2001
129
Hello,
I have what appears to be an easy task, but I am having difficulty. I have recently set up a new Unix box (FreeBSD) and I am using mySQL as a database. I assigned a password to the root@localhost and I use that to set up the other users. I logged into the command line mySQL with
Code:
mysql -u root -p
. I then selected the main database with
Code:
use mysql
. Then I inserted a user with
Code:
insert into user values('localhost', 'myuser', PASSWORD('mypassword'), 'Y', 'Y', ...)
. That took. I then tried to log in to mysql with
Code:
mysql -u myuser -p
and it will not recognize the password. As a matter of fact, if I use
Code:
mysql -r myuser
without a password, it lets me in. Any suggestions would be appreciated. Thanks.

- Mark
 
Did you issue a FLUSH PRIVILEGES command after modifying the user table?

When you modify user permissions using the GRANT or REVOKE statements, the changes take place immediately and automatically.

If you modify the user tables directly, you have to flush the privileges for the changes to take place.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Is love to strong a word to use here... You have made my day, thank you very much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top