1.安装完毕mysql之后,在windows中找到服务,启动MySQL服务(服务端)(mysqld.exe)2.接下来启动客户端(mysql.exe)这里参数中:-hlocalhost 表示主机名(绑定主机IP)-P3306表示端口号-uroot表示用户身份和权限-p密码
分类:
数据库 时间:
2015-07-20 10:40:50
阅读次数:
167
/// /// 获取文件夹下所有文件信息 /// /// public static List FindFolderName() { DirectoryInfo theFolder = new Dir...
转载http://blog.chinaunix.net/uid-22414998-id-113449.html近期开发PHP程序,又一次出现了曾经的add、save无法正常工作问题,而且在调试模式下一切正常,关闭调试模式又不能用。由于已经不止一次出现,我便详实地查阅相关资料,力求找到错误原因。 功夫...
分类:
Web程序 时间:
2015-07-20 10:38:11
阅读次数:
116
主要实现了成员信息的增加,修改,查询,和删除功能,写着玩玩,在写的过程中,遇到的问题,旧新成员信息数据的合并,手机号和邮箱的验证,#!/usr/bin/env python# coding=utf8#author:shantuwqk@163.comimport os, sys, time,jsoni...
分类:
编程语言 时间:
2015-07-20 10:39:00
阅读次数:
141
16.1 Introduction to SQL Tuning Identifying high load or top SQL statements that are responsible for a large share of the application workload and ...
分类:
数据库 时间:
2015-07-20 10:37:43
阅读次数:
161
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2015-07-20 10:37:39
阅读次数:
110
Python命令行参数:-d 在解析时显示调试信息-O 生成优化代码 ( .pyo 文件 )-S 启动时不引入查找Python路径的位置-v 输出Python版本号-X 从 1.6版本之后基于内建的异常(仅仅用于字符串)已过时。-c cmd 执行 Pytho...
分类:
编程语言 时间:
2015-07-20 10:40:01
阅读次数:
152
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:
移动开发 时间:
2015-07-20 10:37:56
阅读次数:
130
upload_max_filesize :300Moutput_buffering onvi /etc/ssh/sshd_config/etc/init.d/sshd restart基础配置命令信息有:'./configure' '--disable-fileinfo' '--enable-bcma...
分类:
其他好文 时间:
2015-07-20 10:38:57
阅读次数:
116
在 实际问题中,有些变量的取值被限定在一个有限的范围内。例如,一个星期内只有七天,一年只有十二个月,性别只有男跟女等等。如果把这些量说明为整型、字符 型或其它类型显然是不妥当的。为此,C#提供了一种称为“枚举”的类型。在“枚举”类型的定义中列举出所有可能的取值,被说明为该“枚举”类型的变量取值 不能...
分类:
编程语言 时间:
2015-07-20 10:38:14
阅读次数:
119
最近准备针对手机做开发,遇到页面显示特别小,所以搞了这么一篇文章!其实主要就是改掉HTML页面声明:在网页中加入以下代码,就可以正常显示了:代码如下: 解释:width - viewport的宽度height - viewport的高度initial-scale - 初始的缩放比例minimum.....
分类:
其他好文 时间:
2015-07-20 10:36:35
阅读次数:
97
host1与host3互为主从,即host1为host3的主机,同时也为host3的从机host1 192.168.203.131host2 192.168.203.132host3 192.168.203.1331.安装keepalivedwww.keepalived.org2.注意先清空防火墙i...
分类:
数据库 时间:
2015-07-20 10:36:24
阅读次数:
169
math模块、cmath模块floor:向下取整ceil:向上取整sqrt:求平方根>>> import math>>> math.floor(1.1)1>>> math.ceil(1.1)2>>> math.sqrt(1)1.0>>> math.sqrt(-1)Traceback (most re...
分类:
其他好文 时间:
2015-07-20 10:36:42
阅读次数:
124
Python 在输出中文时如果未指定编码,在执行过程会出现报错:SyntaxError: Non-ASCII character '\xe4' in file test.py on line 2, but no encoding declared; see http://www.python.org...
分类:
编程语言 时间:
2015-07-20 10:36:13
阅读次数:
109
Rotate an array ofnelements to the right byksteps.For example, withn= 7 andk= 3, the array[1,2,3,4,5,6,7]is rotated to[5,6,7,1,2,3,4].Note:Try to come...
分类:
其他好文 时间:
2015-07-20 10:36:03
阅读次数:
94
这题第一感觉是用搜索做,暴力就可以解决,这里将水管转换成一个个3*3的矩阵,然后搜素就可以了。写完之后确实一遍过掉了,31ms。附上代码:#include"iostream"#include"stdio.h"#include"algorithm"#include"cmath"#include"que...
分类:
其他好文 时间:
2015-07-20 10:36:14
阅读次数:
108
Given an integer, write a function to determine if it is a power of two. 1 bool isPowerOfTwo(int n) 2 { 3 if(n1)10 {11 if(n%2==0)12 ...
分类:
其他好文 时间:
2015-07-20 10:37:32
阅读次数:
124