月份:四月 2011

windows mysql reset root

Posted on Updated on

http://dev.mysql.com/doc/mysql-windows-excerpt/5.0/en/resetting-permissions-windows.html

1. stop mysql service.
2. edit a file abcd.sql
UPDATE mysql.user SET Password=PASSWORD(‘MyNewPass’) WHERE User=’root’;
FLUSH PRIVILEGES;
3. mysqld.exe –console –init-file=abcd.sql
4. new root password = MyNewPass

廣告

VC++ MFC using STL, operator new: ono of the 5 overloads

Posted on Updated on

http://social.msdn.microsoft.com/Forums/zh-CN/visualcpluszhchs/thread/b93ed7fe-c328-4901-bd3a-7e742e499775/
http://support.microsoft.com/kb/317799

to minimize Javascript codes

Posted on

1.YUI Compressor (from Yahoo)
2.JSMin (by Douglas Crockford)
3.ShrinkSafe (from Dojo library)
4.Packer (by Dean Edwards)