Why not try sql to update it:

mysql -u root
mysql > use mysql;
mysql> update user set password = password('new password') where user =
'root';
mysql> flush privileges;
mysql> exit

----- Original Message -----
From: "Michael Nezi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 5:42 PM
Subject: setting root password in mysql


> Never am able to gain access to enter in a password for root?
>
> It's driving me crazy...
>
> Any help>>
>
> Michael Collins thanks for trying!
>
>
> [localhost:/Users/nezi] root# kill -9 1354
> [localhost:/Users/nezi] root# kill -9 1371
> [localhost:/Users/nezi] root# cd /usr/local
> [localhost:/usr/local] root# ./bin/safe_mysqld --user=mysql
> --skip-grant-tables &
> [1] 1388
> [localhost:/usr/local] root# Starting mysqld daemon with databases
> from /usr/local/var
>
> [localhost:/usr/local] root# ./bin/mysqladmin -u root password mysql77
> ./bin/mysqladmin: unable to change password; error: 'You must have
> privileges to update tables in the mysql database to be able to
> change passwords for others'
> [localhost:/usr/local] root# ./bin/mysqladmin flush-privileges
> [localhost:/usr/local] root# ./bin/mysql -u root -p
> Enter password:
> ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
> [localhost:/usr/local] root#
>
> --
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to