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
. I then selected the main database with
. Then I inserted a user with
. That took. I then tried to log in to mysql with
and it will not recognize the password. As a matter of fact, if I use
without a password, it lets me in. Any suggestions would be appreciated. Thanks.
- Mark
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
Code:
use mysql
Code:
insert into user values('localhost', 'myuser', PASSWORD('mypassword'), 'Y', 'Y', ...)
Code:
mysql -u myuser -p
Code:
mysql -r myuser
- Mark