RE: [PHP-DB] setting root password
| From: | Fire Marshal's Office) | Date: | Tue, 19 Oct 2004 13:24:28 +0000 |
| Subject: | RE: [PHP-DB] setting root password | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-36914@lists.php.net to get a copy of this message | ||
After going to the command prompt I have done exactly this:
c:\>cd C:\mysql\bin
c:\mysql\bin>mysql -uroot -p
mysql>SET PASSWORD FOR root@localhost=PASSWORD('mypassword');
I get the following familiar message:
You have an error on your SQL syntax. Check the manual that corresponds to
your MySQL server version for the right syntax to use near
'PASSWORD('mypassword')' at line 1
Why does this not set my password correctly?
-Matt
_____
From: dpgirago@mdanderson.org [mailto:dpgirago@mdanderson.org]
Sent: Monday, October 18, 2004 1:35 PM
To: php-db@lists.php.net; Perry, Matthew (Fire Marshal's Office)
Subject: Re: [PHP-DB] setting root password
If you haven't yet deleted the localhost root account, you can log onto the
mysql client with:
mysql> mysql -uroot -p
then press enter again when it prompts you for a password.
You should now be able to manage all your account info.
dave
"Perry, Matthew (Fire Marshal's Office)" <Matthew.Perry@fmo.hctx.net>
10/18/2004 01:28 PM
To:
php-db@lists.php.net
cc:
Subject:
[PHP-DB] setting root password
I have tried the step-by-step methods listed on mysql.com for setting a root
password for my local server but I keep getting the message "you must have
privileges to update tables in the mysql database to be able to change
passwords for others". What could I be doing incorrectly?
-Matt