Where is the default config file and how to config it? <br><br> I copyed surpport-files/my-medium.cnf to /etc/my.medim.cnf and its content is as follow:<br><br>[client]<br>#password = your_password<br>port = 3306
<br>socket = /tmp/mysql.sock<br><br># Here follows entries for some specific programs<br><br># The MySQL server<br>[mysqld]<br>port = 3306<br><span style="font-weight: bold;">user =root</span><br>socket = /tmp/mysql.sock
<br>skip-locking<br>key_buffer = 16M<br>max_allowed_packet = 1M<br>table_cache = 64<br>sort_buffer_size = 512K<br>net_buffer_length = 8K<br>read_buffer_size = 256K<br>read_rnd_buffer_size = 512K<br>myisam_sort_buffer_size = 8M
<br><br>Is anything wrong with it?<br>I have done the following steps to reset 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>
<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&
<div> 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-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><br></div> </div><br><br><div><span class="gmail_quote">2007/1/29, <a href="mailto:A.L.M.Buxey@lboro.ac.uk">
A.L.M.Buxey@lboro.ac.uk</a> <<a href="mailto:A.L.M.Buxey@lboro.ac.uk">A.L.M.Buxey@lboro.ac.uk</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>> But i couldn't use " mysql -u root -p rootpass" to enter the command line<br>> enviroment any longer. The output is :ERROR 1045 (28000): Access denied for<br>> user 'root'@'localhost' (using password: YES). Seems strange,isnt? Anyway, I
<br>> might better re-install Mysql.<br><br>not strange at all - does that default config file have a root exclude or<br>a default password entry? have you installed or created the privileges table<br>(check the mysql table for user/password/host entries)
<br><br>alan<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>