Yes, <a href="http://202.117.7.243">202.117.7.243</a> is the MySQL server's IP.The problem is that I can not login to MySQL on the command line. <br>The following is the input commands and output responses to them:<br>
<span style="font-weight: bold;"> input command</span>: ./bin/mysqld_safe --user=root<br> <span style="font-weight: bold;">output results: </span> Starting mysqld daemon with databases from /home/ygx/mysql-standard-5.0.20-linux-i686
/data<br> <span style="font-weight: bold;">input command:</span>./bin/mysql -u root -p<br> <span style="font-weight: bold;">output results</span>:Enter password:<br>ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
<br> <span style="font-weight: bold;">input command:</span>./bin/mysql -u root<br> <span style="font-weight: bold;">output results:</span>Welcome to the MySQL monitor. Commands end with ; or \g.<br>Your MySQL connection id is 2 to server version:
5.0.20-standard-log<br><br>Type 'help;' or '\h' for help. Type '\c' to clear the buffer.<br><br>mysql><br> <span style="font-weight: bold;">Notice:</span> the third input command is not with "-p".
<br><br> I have done the following steps to <span style="font-weight: bold;">reset</span> user "root"'s password:<br><div> # killall -TERM mysqld<br></div>
<div> #./bin/mysql_safe --skip-grant-tables&</div>
<div> #./mysql -u root<br> >use mysql; <br></div>
<div> >update user set password=password('the-new-password') where user='root';</div>
<div> >flush priviliges;</div>
<div> >quit;</div>
But<font size="4"> it didn't work.</font> At first I <font size="4">could </font>use #./bin/mysql_safe --skip-grant-tables&
and #./mysql -u root to enter into the command line environmeng of mysql ,<br>while the two commands doesn't take effect now. The response to #./bin/mysql_safe --skip-grant-tables& is like follows:<br>
[root@nic219 mysql-standard-5.0.20-linux<div>-i686]# bin/mysqld_safe --skip-grant-tables &<br>[1] 4542<br>[root@nic219 mysql-standard-5.0.20-linux-i686]# Starting mysqld daemon with databases from /home/ygx/mysql-standard-5.0.20-linux-i686
/data<br>STOPPING server from pid file /home/ygx/mysql-standard-5.0.20-linux-i686/data/nic219.pid<br>070129 15:40:21 mysqld ended<br></div><br><br><div><span class="gmail_quote">2007/1/30, Dennis Skinner <<a href="mailto:dskinner@bluefrog.com">
dskinner@bluefrog.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">yao guoxian wrote:<br>> rlm_sql_mysql: Mysql error 'Host '
<a href="http://202.117.7.243">202.117.7.243</a> <<a href="http://202.117.7.243">http://202.117.7.243</a>>'<br>> is not allowed to connect to this MySQL server'<br><br>I assume this is a test server and is tightly controlled....
<br><br>Login to MySQL as root on the command line.<br>Type this:<br><br>GRANT ALL ON *.* TO <a href="mailto:root@202.117.7.243">root@202.117.7.243</a> IDENTIFIED BY 'mysql-root-pass';<br><br>That will let you do what you are trying to do. Then go read the MySQL
<br>documentation on server security. You really should not be using the<br>root account. Create a new user for radius queries and only give it the<br>access it needs. Then REVOKE the rights I just had you GRANT above.
<br><br>--<br>Dennis Skinner<br>Systems Administrator<br>BlueFrog Internet<br><a href="http://www.bluefrog.com">http://www.bluefrog.com</a><br>-<br>List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html">
http://www.freeradius.org/list/users.html</a><br></blockquote></div><br>