现在用orm比较多,很多mysql表啊都不用自己创建,但是数据库还是要自己创建,记录下sql, 备忘。
CREATE DATABASE `mydb` CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL ON `mydb`.* TO `username`@localhost IDENTIFIED BY 'password';
FLUSH PRI...
分类:
数据库 时间:
2015-03-31 22:15:36
阅读次数:
154
1. Building the library as a statically linkable library-----------------------------------------------------General: PTW32_STATIC_LIB must be defined...
***General*************************************************************1、HttpSplitingstep1cn%0aContent-length:%200%0a%0aHTTP/1.1%20200%20OK%0aContent-Type:%20text/html%0aContent-length:30%0a<html>Haha</html>step2//添加Last-Modified头,设置服务..
分类:
Web程序 时间:
2015-03-30 18:57:59
阅读次数:
352
eclipse和sts比较新的版本中字体默认是Consolas,这种字体文字比较小。这个可以调整到没所谓,但是中文字太小了,一旦用注释。。。。眼睛没办法直视。
一直习惯&喜欢的字体是Courier New。没办法去设置字体。
点开window--》perferences
General-->Colors and Fonts-->Basic-->Text Font...
分类:
系统相关 时间:
2015-03-30 16:30:47
阅读次数:
263
STM32学习笔记—点亮led灯STM32的I/O口有很多的功能,所以称为GPIO(GENERAL PURPOSE)其中GPIO又分为A,B,C,D,E,F,G不同的组,每个组端口又分为0~15,共16个不同的引脚,不同的芯片引脚数量也不同,所用的学习板为STM32F103RBT6;I/O口的八种模...
分类:
其他好文 时间:
2015-03-29 12:13:54
阅读次数:
178
练习3-66原文Exercise 3.66. Examine the stream (pairs integers integers). Can you make any general comments about the order in which the pairs are placed into the stream? For example, about how many pairs...
分类:
其他好文 时间:
2015-03-29 10:55:03
阅读次数:
110
??
WindowàPreferenceàGeneralàWorkspaceàText
file encoding都改成UTF-8
2、WindowàPreferenceàGeneralàEditorsàFile
Associationsà修改html和htm的默认Associateeditors为以下的:
修改jsp的打开方式:
...
分类:
系统相关 时间:
2015-03-28 06:28:26
阅读次数:
305
2.1、搭建实验环境 1、在mysql中创建一个库,并创建user表和插入表的数据。 SQL脚本如下: 1 create database jdbcStudy character set utf8 collate utf8_general_ci; 2 3 use jdbcStudy; 4 ...
分类:
数据库 时间:
2015-03-21 17:02:03
阅读次数:
157
长时间的使用eclipse开发会很累吧 设置一个保护眼睛的豆沙绿色 不刺眼 是不是会更好一些呢 那么如何设置呢现在就教大家工具/原料eclipsejdk方法/步骤首先打开eclipse点击window点击preferences展开General展开Editors点击Text Editors点击App...
分类:
系统相关 时间:
2015-03-21 01:03:21
阅读次数:
222
i ^ (i >> 1), that's the general format 1 class Solution { 2 public: 3 vector grayCode(int n) { 4 vector result; 5 for (int i = 0;...
分类:
其他好文 时间:
2015-03-20 01:09:59
阅读次数:
140