2016年12月27日 星期二

[MySQL]change root password


>sudo /etc/init.d/mysql stop
>sudo mysqld_safe --skip-grant-tables &


Starting mysqld daemon with databases from /var/lib/mysql
(continue typing)
mysql -u root

>use mysql;
>update user set authentication_string = password('root') where user = 'root' ;
>FLUSH PRIVILEGES;

2016年12月15日 星期四

[ASP]UTF8中文亂碼

更新舊code遇到問題...

程式開頭加上
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Response.CharSet = "UTF-8"%>
<%Response.CodePage = 65001%>