11 2017 档案

摘要:init.sql文件内容 从init.sql文件中导入数据 !!!重中之重:练习之前务必搞清楚sql逻辑查询语句的执行顺序 链接:http://www.cnblogs.com/linhaifeng/articles/7372774.html 阅读全文
posted @ 2017-11-29 14:13 wangmo 阅读(295) 评论(0) 推荐(0) 编辑
摘要:create table class( cid int primary key auto_increment, caption char(20) not null )engine=innodb; create table teacher( tid int primary key auto_increment, tname char(20) not null )engine=innodb;... 阅读全文
posted @ 2017-11-29 14:12 wangmo 阅读(246) 评论(0) 推荐(0) 编辑
摘要:下面是例子分析表A记录如下: aID aNum 1 a20050111 2 a20050112 3 a20050113 4 a20050114 5 a20050115 表B记录如下: bID bName 1 2006032401 2 2006032402 3 2006032403 4 2006032 阅读全文
posted @ 2017-11-29 13:03 wangmo 阅读(1147) 评论(0) 推荐(0) 编辑
摘要:简要描述: 搜索引擎版本配置 产品版本号ES版本要求说明 PHP =5.5.38 Java =1.8.0_73 用于支持ES Elasticsearch =2.3.5 搜索引擎 elasticsearch-php = 2.3.1 >= 2.0, < 5.0 插件:Official PHP low-l 阅读全文
posted @ 2017-11-28 10:38 wangmo 阅读(580) 评论(0) 推荐(0) 编辑
摘要:This is guide, howto install Adobe Flash Player Plugin version 27 (32-bit and 64-bit) with YUM/DNF on Fedora 27/26/25/24/23/22, CentOS 7.4/6.9 and Red 阅读全文
posted @ 2017-11-23 17:11 wangmo 阅读(861) 评论(0) 推荐(0) 编辑
摘要:Installationedit Elasticsearch requires at least Java 8. Specifically as of this writing, it is recommended that you use the Oracle JDK version 1.8.0_ 阅读全文
posted @ 2017-11-23 11:30 wangmo 阅读(2398) 评论(0) 推荐(0) 编辑
摘要:1、源码包准备: 首先到官网下载jdk-8u66-linux-x64.tar.gz, http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 2、解压源码包 通过终端在/usr/local 阅读全文
posted @ 2017-11-22 17:57 wangmo 阅读(9697) 评论(0) 推荐(0) 编辑
摘要:1、安装服务 1 2 名字有点怪哦,CentOS5前叫vnc-server 2、运行并设置密码 1 2 输入密码,会生成相关的文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3、配置用户 1 2 最后一行加入: VNCSERVERS=”1:root” 多个用户用空格分开,并要 阅读全文
posted @ 2017-11-20 15:59 wangmo 阅读(7628) 评论(0) 推荐(0) 编辑
摘要:来源:http://www.cnblogs.com/pping/p/3989098.html?utm_source=tuicool&utm_medium=referral 来源:http://www.cnblogs.com/darkpig/p/5677153.html 来源:点击打开链接 Pytho 阅读全文
posted @ 2017-11-14 22:19 wangmo 阅读(6961) 评论(0) 推荐(2) 编辑
摘要:https://www.cnblogs.com/djoker/p/5906711.html 阅读全文
posted @ 2017-11-14 20:59 wangmo 阅读(423) 评论(0) 推荐(0) 编辑
摘要:由于是第一次安装,不能确定你是否有安装编译和mysql所要依赖的插件,使用我是当做你最原始的安装环境。 1、安装mysql5.1的依赖包 yum install -y gcc gcc-c++ autoconf* automake* zlib* libxml* ncurses-devel* libgc 阅读全文
posted @ 2017-11-14 10:14 wangmo 阅读(532) 评论(0) 推荐(0) 编辑
摘要:服务器上的mysql默认数据目录为/var/lib/mysql/,同时服务器的/空间不是很大,而近期又有大量的日志需要导入进行分析,时常搞得/的空间捉襟见肘,晚上一狠心就想把mysql的数据目录转移到另外一块硬盘/data中。 于是关闭mysql服务: service mysqld stop 转移m 阅读全文
posted @ 2017-11-14 10:14 wangmo 阅读(297) 评论(0) 推荐(0) 编辑
摘要:在Mysql下有时候会出现mysql.sock位置错误,导致无法链接数据库。 mac下报错的时候: 首先修改my.cnf 位置在/etc/my.cnf下,假如没有的话,去/usr/locate/mysql版本/my.cnf下修改,然后复制到/etc下。 修改为如下: [plain] view pla 阅读全文
posted @ 2017-11-13 12:52 wangmo 阅读(10523) 评论(0) 推荐(0) 编辑
摘要:1 import sys 2 import time 3 total_size=10212 4 recv_size=0 5 def progress(percent,width=50): 6 if percent > 1: #如果百分比大于1的话则取1 7 percent=1 8 show_str=('[%%-%ds]' %width) %(int... 阅读全文
posted @ 2017-11-11 21:42 wangmo 阅读(1846) 评论(0) 推荐(0) 编辑
摘要:Ubuntu 16.04 LTS 安装VNC,在百度和谷歌找了很多教程,不是太老,就是说的驴唇不对马嘴,所以忍不住写一些以正视听。 Ubuntu 16.04 LTS是最近出的LTS版本系统,估计未来也会有长期的使用频率,配置好远程桌面,会极大方便工作和生活。很多人也会采用SSH远程管理,鉴于SSH安 阅读全文
posted @ 2017-11-07 11:36 wangmo 阅读(971) 评论(0) 推荐(0) 编辑
摘要:介绍: UUID是128位的全局唯一标识符,通常由32字节的字符串表示。 使用: [html] view plain copy import uuid print uuid.uuid1() 14bfe806-f1c7-11e6-83b5-0680f3c45093 uuid1()——基于MAC地址、当 阅读全文
posted @ 2017-11-07 10:27 wangmo 阅读(880) 评论(0) 推荐(0) 编辑
摘要:介绍: UUID是128位的全局唯一标识符,通常由32字节的字符串表示。 使用: [html] view plain copy import uuid print uuid.uuid1() 14bfe806-f1c7-11e6-83b5-0680f3c45093 uuid1()——基于MAC地址、当 阅读全文
posted @ 2017-11-07 10:27 wangmo 阅读(295) 评论(0) 推荐(0) 编辑
摘要:MySQL数据库默认的数据库文件位于/var/lib/mysql下,有时候由于存储规划等原因,需要更改MySQL数据库的数据存储目录。下文总结整理了实践过程的操作步骤。 1:确认MySQL数据库存储目录 [root@DB-Server tmp]# mysqladmin -u root -p vari 阅读全文
posted @ 2017-11-06 14:12 wangmo 阅读(373) 评论(0) 推荐(0) 编辑
摘要:socketserver socketserver内部使用IO多路复用以及“多线程”和“多进程”,从而实现并发处理多个客户端请求的scoket服务端。即,每个客户端请求连接到服务器时,socket服务端都会在服务器是创建一个“线程”或“进程”专门负责处理当前客户端的所有请求。 ThradingTCP 阅读全文
posted @ 2017-11-06 12:51 wangmo 阅读(211) 评论(0) 推荐(0) 编辑
摘要:python staticmethod and classmethod Though classmethod and staticmethod are quite similar, there’s a slight difference in usage for both entities: cla 阅读全文
posted @ 2017-11-04 22:24 wangmo 阅读(5725) 评论(0) 推荐(0) 编辑
摘要:Python的命名空间是Python程序猿必须了解的内容,对Python命名空间的学习,将使我们在本质上掌握一些Python中的琐碎的规则。 接下来我将分四部分揭示Python命名空间的本质:一、命名空间的定义;二、命名空间的查找顺序;三、命名空间的生命周期;四、通过locals()和globals 阅读全文
posted @ 2017-11-04 22:16 wangmo 阅读(328) 评论(0) 推荐(0) 编辑
摘要:>>> for i in range(0,10): if i > 10: break; else: print "hello world"; 输出:hello world >>> for i in range(0,10): if i > 5: break; else: print "hello wo 阅读全文
posted @ 2017-11-02 21:32 wangmo 阅读(162) 评论(0) 推荐(0) 编辑
摘要:open/文件操作f=open('/tmp/hello','w')#open(路径+文件名,读写模式)#读写模式:r只读,r+读写,w新建(会覆盖原有文件),a追加,b二进制文件.常用模式如:'rb','wb','r+b'等等 读写模式的类型有: rU 或 Ua 以读方式打开, 同时提供通用换行符支 阅读全文
posted @ 2017-11-02 17:41 wangmo 阅读(204) 评论(0) 推荐(0) 编辑
摘要:作者:李保银链接:https://www.zhihu.com/question/20021164/answer/18224953来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 普通方法,静态方法和类方法 这个答案的原文是Difference between @stat 阅读全文
posted @ 2017-11-02 16:42 wangmo 阅读(3976) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示