Howdy All!

I encountered a 1045 error myself and in searching Google found this thread
from March 2003. I am not sure if it was solved, so, for the record, here is
what I did to solve it.

I tried logging into mysql as default with just this command:

mysql --local-infile -h localhost

I then tried to create a user for myself with the following command and
error:

mysql>    GRANT ALL PRIVILEGES ON *.* TO [EMAIL PROTECTED]
    ->    IDENTIFIED BY 'rob' WITH GRANT OPTION;
ERROR 1045: Access denied for user: '@127.0.0.1' (Using password: NO)
mysql>


I fixed this by quitting and logging in again as root, which has no password
set by default and making the user:

C:\mysql\bin>mysql -h localhost -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.1.0-alpha-max-debug

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>    GRANT ALL PRIVILEGES ON *.* TO [EMAIL PROTECTED]
    ->    IDENTIFIED BY 'rob' WITH GRANT OPTION;
Query OK, 0 rows affected (0.02 sec)

mysql> exit
Bye



Rob
:)
:->
:-}


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to