今天遇到mysql连接odbc时报如下错误:Can't open named pipe to host: . pipe: MySQL
错误截图如下:
按照网上说的方法包括mysql的官方说法都没有奏效,最终的解决方案是:把以前的odbc连接删除,然后重新建一个同名的即可。问题解决。
产生这个问题的原因是:同事新装了一个odbc驱动。
附上一篇协助我解决问题的博客地址:http://bl...
分类:
数据库 时间:
2014-08-18 20:36:42
阅读次数:
340
在文件src\http\ngx_http_core_module.c的函数ngx_http_core_run_phases(ngx_http_request_t *r)里面,添加如下代码://声明部分 ngx_str_t* name; ngx_http_variable_value_t*...
分类:
其他好文 时间:
2014-08-18 17:56:22
阅读次数:
1094
最近在用Python开发自己的博客,需要用到Python生成验证码,当然肯定要用到Python的图形处理库PIL,因为我用的是windows。
所以在安装好pil之后就开始写,就按照题目所说出现了The _imagingft C module is not installed 错误,找了很多建议,最后确定在windows下应该用pillpw。下载地址http://www.lfd.uci.edu/...
分类:
编程语言 时间:
2014-08-18 14:35:52
阅读次数:
300
一、安装#yum install gd-devel##./configure --prefix=/usr/local/nginx \# --with-debug \# --with-http_stub_status_module ...
分类:
其他好文 时间:
2014-08-18 14:17:42
阅读次数:
154
项目结构目录:Apache 安装配置目录:C:\Apache2.2\conf\httpd.confLoadModule wsgi_module modules/mod_wsgi.soWSGIScriptAlias / D:\TestApp\MyDjangoSite\mysite\mysite\wsg...
分类:
编程语言 时间:
2014-08-18 12:03:04
阅读次数:
229
Linux下配置DNS服务器: 域名软件 : bind # berkely internet name domain bind: /etc/named.conf : root : named /var/named/ : 工作目录 配置文件: ...
分类:
系统相关 时间:
2014-08-17 22:36:42
阅读次数:
294
1、模块来源:随Perl发行版本一起打包、从CPAN下载
2、阅读模块文档:perldoc CGI
3、安装模块
makemaker方式:
指定安装目录:
Module::build方式:
cpan方式:
4、File::basename模块
5、仅选用模块的部分函数
导入引用列表即可
10、不引入任何函数
通过全名的方式使用:
11、...
分类:
其他好文 时间:
2014-08-17 15:40:33
阅读次数:
209
有一个以前写的c语言代码,我想把它用在python程序中。我先是看了《python基础教程》一书中的方法,书中说可以用swig加python内置distutils模块的方法来实现。我照着书上的步骤试了试,结果在导入模块的时候总是提示“ImportError:
dynamic module does not define init function (initprintf)”。起初我以为是so文...
分类:
编程语言 时间:
2014-08-16 16:32:30
阅读次数:
304
The first 3 parts are easy to get. I should know the name, version, and culture for the assembly since I am writing it. The part that can be a little ...
分类:
其他好文 时间:
2014-08-16 12:23:00
阅读次数:
226
整个jQuery是一个自调用的匿名函数: 1 (function(global, factory) { 2 if (typeof module === "object" && typeof module.exports === "object") { 3 module.exp...
分类:
Web程序 时间:
2014-08-15 23:42:49
阅读次数:
300