[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] MySQL
- Subject: RE: [cobalt-developers] MySQL
- From: "Andy Brown" <andy.brown@xxxxxxxxxxxxx>
- Date: Mon Dec 3 01:37:01 2001
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
> shell> mysql -u root -pcobalt-mysql
> mysql>use mysql;
> mysql> UPDATE user SET Password=PASSWORD('new_password') WHERE
> mysql>user='root'; FLUSH PRIVILEGES;
>
> or i believe this will work too:
> shell> mysqladmin -u root cobalt-mysql new_password
>
> -Rob
Quick correction to the mysqladmin method, it should be
mysqladmin -p -u root password new_password
The word password has to be there to tell mysqladmin what to do, it
doesn't mean literally the password! And the -p tells it to prompt you
for the current password (which is default set to cobalt-mysql)
Regards,
Andy
andy@xxxxxxxxxxxxxxxxxxxxx
http://ineedlinux.info/