1.mysql  安装前需要安装.net framework 框架

mysql  无法安装  最后一布,start server 服务起不来。

原因,为上一次mysql没有删除,干净,导入无法安装。  1. 错误193  2.不是win32 程序。

删除注册表,还有c盘的  C:\Documents and Settings\All Users\Application Data\MySQL  (可能不是这个路径)

1.还有c在配置文件里改端口号,改server.xml文件中  8080为所需端口号。

 <Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
/>

2.输入IP地址直接访问

      <Host name="localhost"  appBase="webapps"
unpackWARs="true" autoDeploy="true">
<!--<Context path="" docBase="/REALPRO"/>-->
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
--> <!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t &quot;%r&quot; %s %b" />
<!--<Context path="" docBase="../REALPRO"(修改此处) debug="0" reloadable="true"/> --> </Host>

首页在项目web.xml  下配置

3.中文乱码

所有页面 utf-8

first: 检查链接  1.private final static String url = "jdbc:mysql://localhost:3306/realproblem?useUnicode=true&characterEncoding=UTF-8";

url  是否设置编码

2.SHOW VARIABLES LIKE 'character_set_%';  设置  utf-8  除了一个 binary .

注:写项目,数据库每个表,有个全使用英文数据,项目发布后,进行中英文测试,先英文,再中文。代码sql语句包含中文,无法再数据库查到数据,因为乱码,匹配不了。但是不会报错。但是在命令行,或者mysql 客户端  执行sql语句没有错误。

最新文章

  1. JAVA 设计模式 状态模式
  2. python04 面向对象编程02
  3. rdp爆破工具 Fast RDP Brute
  4. EF CodeFirst 创建数据库
  5. HDU 2594 扩展kmp模板题
  6. Include Native *.so Library in APK With Android Studio
  7. sensor_HAL分析
  8. 对x264_macroblock_cache_load的理解
  9. SpringMVC记住密码功能
  10. Swift语言指南(八)--语言基础之元组
  11. 手动清除memcached缓存方法
  12. 多线程之interrupt
  13. unbuntu系统( PC机 )中安装360wifi步骤
  14. jQuery筛选总结
  15. hashlib模块configparser模块logging模块
  16. VS2010部署相关
  17. Alpha冲刺第7天
  18. 非root用户使用1024以下端口
  19. ping(团队作业)
  20. day4正则表达式

热门文章

  1. cocos2dx使用了第三方库照样移植android平台-解决iconv库的移植问题
  2. angular的directive笔记
  3. [原创]Devexpress XtraReports 系列 3 创建主从报表
  4. poj 3060 Visible Lattice Points
  5. emWin(ucGui)数值显示例程 -【worldsing笔记】
  6. Scriptcase优惠活动即将结束
  7. HDU4289Control(最大流)
  8. c++中指针类型在c#中怎么对应?
  9. Android导入自定义的jar包时出现 E/AndroidRuntime(486): java.lang.NoClassDefFoundError错误
  10. 6.开放-关闭原则(Open-Close Principle)