看板FreeBSD
标 题Re: ports中的MySQL 4发生啥事了?
发信站玲珑水榭 (Thu Jul 29 02:09:01 2004)
转信站ptt!ctu-reader!ctu-peer!news.nctu!news.csie.ncyu!news.ncyu!news.ccu!Yu
照这样来试看看
先停掉 mysql
% /usr/local/etc/rc.d/mysql-server.sh stop
% safe_mysqld --user=mysql --pid-file=mysqld.pid --skip-grant-tables &
% mysql -u root mysql
> update user set password=password('newpassword') where User='root' and host='localhost';
> flush privileges;
然後
% kill `cat mysqld.pid`
重跑 mysql
% /usr/local/etc/rc.d/mysql-server.sh start
--
peace of love~
Alan, Cheng-Lung Sung <clsung AT dragon2 DOT net>
--
◆ 从
localhost 来的水榭访客
--
自由心灵的天堂§水榭(SungSung.Dragon2.Net)§