Hi all,
I have a curious problem with the ERROR 1044 and 1045:
-system: OS X 10.4.3 (bash shell)
-bash schell prompt: /~ kssun$
-I have set passwd to 'kssun'
-I set path: PATH=${PATH}:/usr/local/mysql/bin
- symptom 1
when I type mysql (without passwd), I enter mysql prog with following
greeting msg:
---------------------------------------------------------------------------------------------
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 56 to server version: 5.0.17-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
---------------------------------------------------------------------------------------------------
But when I try to create database, I get ERROR 1044:
----------------------------------
mysql> create database hi;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database
'hi'
---------------------------------
for information:
-------------------------------------------
mysql> select user();
+-----------------+
| user() |
+-----------------+
| kssun@localhost |
+-----------------+
1 row in set (0.00 sec)
------------------------------------------------------
-Symptom 2
I try then to login with -u option, here are the results:
(1) login as kssun w/o passwd
successed as like login w/o user name, ERROR 1044 for create database,
select user() show kssun@localhost
(2) login as kssun with passwd
failed, ERROR 1045, however I typed the passwd that I set for bash
shell
-------------------------------------------------------------------
ras75-3-82-226-221-2:~ kssun$ mysql -u kssun -p
Enter password:
ERROR 1045 (28000): Access denied for user 'kssun'@'localhost' (using
password: YES)
---------------------------------------------------------------
(3) login as root (w/o passwd)
successed to create dababase without any difficulty and user become:
----------------------------------
mysql> select user();
+----------------+
| user() |
+----------------+
| root@localhost |
+----------------+
Would someone have un idea of this mysterious situation?
Thanks for whom read this article.
ks