1、windows下mysql提示access denied for user ''@'localhost' to database
解决方案:
D:\MySQL\MySQL Server 5.6\bin>mysqld --defaults-file="D:\MySQL\MySQL Server 5.6\my-default.ini" --console --skip-grant-tables
D:\MySQL\MySQL Server 5.6\bin>mysql -u root mysql
mysql> update user set password=PASSWORD('password') where user='root';
mysql> FLUSH PRIVILEGES;
mysql> quit
2、IE浏览器返回JSON数据提示下载的解决办法
原因:ie浏览不支持application/json数据格式引起的
解决方案:
方法1. 将数据格式改为text/html。
方法2. 如果是做测试为了方便直接在网页上打开浏览的话,可以将以下内容编辑成扩展名为 *.reg 的文件(文件名随意),然后双击执行将该文件导入注册表:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Encoding"=dword:00080000
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/json]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"encoding"=dword:00080000
其原理是修改注册表,将 application/json、text/json 两种 Content-Type 开启设置调成与 GIF/PNG/HTML 一致,改为直接用浏览器打开查看。
3、An error has occurred.see error log for more details eclipse
解决方案:
打开cmd(命令提示符),切换到Eclipes目录下,输入eclipse.exe -clean