I recently installed mysql-essential-4.1.9-win32 and with some friends' help at this forum, I can logon mysql server fine. Now, I have some further questions. I appreciate your attention and help very much.
1) According a book I have (Beginning JSP 2.0), I should run the following command:
mysql> delete from user where host = 'localhost' and user=''
However, when I check how many users in table user, I got:
C:\Program Files\MySQL\MySQL Server 4.1\bin>mysql -u root -p123abc
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.1.9-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use mysql;
Database changed
mysql> select host, user from user;
+-----------+------+
| host | user |
+-----------+------+
| % | |
| localhost | root |
+-----------+------+
2 rows in set (0.00 sec)
It indicates that only one user in this table. Is this normal?
2. According to the same book, I should also run the following 2 commands:
> mysqladmin reload
> mysqladim -u root password {my_new_passwd}
However, I got these error messages:
C:\Program Files\MySQL\MySQL Server 4.1\bin>mysqladmin reload
mysqladmin: reload failed; error: 'Access denied; you need the RELOAD privilege for this operation'
What should I do now?
Many thanks for your help!
1) According a book I have (Beginning JSP 2.0), I should run the following command:
mysql> delete from user where host = 'localhost' and user=''
However, when I check how many users in table user, I got:
C:\Program Files\MySQL\MySQL Server 4.1\bin>mysql -u root -p123abc
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.1.9-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use mysql;
Database changed
mysql> select host, user from user;
+-----------+------+
| host | user |
+-----------+------+
| % | |
| localhost | root |
+-----------+------+
2 rows in set (0.00 sec)
It indicates that only one user in this table. Is this normal?
2. According to the same book, I should also run the following 2 commands:
> mysqladmin reload
> mysqladim -u root password {my_new_passwd}
However, I got these error messages:
C:\Program Files\MySQL\MySQL Server 4.1\bin>mysqladmin reload
mysqladmin: reload failed; error: 'Access denied; you need the RELOAD privilege for this operation'
What should I do now?
Many thanks for your help!