- 浏览: 101635 次
- 性别:
- 来自: HK
-
文章分类
最新评论
-
Mr.小裤裤:
谢谢,
我生日过的很快乐,
o(∩_∩)o...
system badimageformatexception and its partial solution
unlike postgres where tons of third party drivers are waiting for being chosen, for mysql, there are only a few choices and mysqldb is the best at the moment (yep, there are many pure python drivers for mysql, unfortunately, there are all in beta status).
mysql-python doesn't have an offical binary for python 2.6 & mysql 5.5 so i have to build one for myself.
1: get a copy of mysql-python and uncompress it.
2: open setup_windows.py and commet two sentences:
#serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
#mysql_root, dummy = _winreg.QueryValueEx(serverKey,'Location')
now assign a new value for mysql_root...
here my root is mysql_root = r"D:\MySQL\MySQL Server 5.5"
3: find out library_dirs = [ os.path.join(mysql_root, r'lib\opt') ] and change it to
library_dirs = [ os.path.join(mysql_root, r'lib') ]
after step two and three, save setup_windows.py
4: open _mysql.c comment find the following part:
#if defined(MS_WINDOWS)
#include <winsock2.h>
#include <windows.h>
#include <config-win.h>
#else
#include "my_config.h"
#endif
wipe #include <config-win.h> and #else out. use #include "my_config.h" directly, like:
#if defined(MS_WINDOWS)
#include <winsock2.h>
#include <windows.h>
#endif
#include "my_config.h"
save _mysql.c
5: python setup.py install... after that we may run some tests...all tests are passed on my machine...
tested envrionment:
windows 7 64 bit...
vs2008, python 2.6.6
Note: occasionally, when doing python setup.py install we may see generate _mysql.pyd.manifest error, use
python setup.py clean, python setup.py bdist instead.
发表评论
-
static building lxml
2014-08-13 19:15 841well it is not really straig ... -
build pyrun/python from source
2014-08-01 19:39 604quite easy on ubuntu. 1: ... -
build apsw manually
2014-01-06 01:22 558download sqlite sources and co ... -
python, vs 2010 & manifest problem
2013-11-02 13:33 646It looks like python com ... -
numpy 1.7.0 fails with cx_freeze 4.3.1
2013-02-24 16:13 867It is a work around: find ... -
build psycopg2 on windows with mingw64
2013-01-03 20:36 983caution: version match problem. ... -
Determining if a point lies on the interior of a polygon
2012-09-25 02:23 692link: http://paulbourke.net/geo ... -
pypy的一个测试
2012-06-09 16:15 1619pypy-1.9 昨天已经发布,据称性能又有所提高。 ... -
a naive way to use dictcursor of psycopg2 with twisted adbapi
2012-05-03 03:14 1189make a new file called fakedb.p ... -
build psycopg2 on windows with vs
2012-05-02 02:16 883prerequisites: 1: postgresq ... -
twisted iocp reactor is still buggy---it was fixed on 23/10/2012
2012-03-19 14:53 1286I reported a bug on last wee ... -
One way to speed up Pb invoke.
2012-03-14 21:31 864Pb (stands for Perspecti ... -
change buffer size in order to send chunks data in ampoule
2011-12-03 16:08 821ampoule use name pipe to commun ... -
which one is thread safe?
2011-09-21 12:31 933quote: It's not so much tha ... -
cython的另类用途
2011-08-04 02:30 1614都知道py虽然方便但是却有个不是问题的问题:就是发布时的二进制 ... -
instructions for installing some python's pkgs on ubuntu
2011-07-23 00:54 794make sure python-dev, gcc and o ... -
a tedious way to build the latest pytables
2011-07-17 03:33 729pyTables is a great product. It ... -
再谈twisted
2011-06-29 17:03 1449现在我手头用的是11.0。 很好。没什么很大的问题,原来的版本 ... -
cython的效果
2011-06-29 00:29 822我有个用py写的 crc-ccitt的验证程序(实现效率并不高 ... -
the simplest way to use vs 2010 with python
2011-06-03 15:48 690edit py/Lib/distutils/msvc9comp ...
相关推荐
对于某些存储过程很多且复杂的SQL的应用,在短时间内要使得所有MySQL存储过程和函数正常运行,那么如果能找到一个比较好的调试工具,就可以事半功倍, 这里介绍的是dbForge Studio for MySQL。 1. 首先说明dbForge ...
**文件"Compile ARM MySQL.docx"**: 这个文档很可能详细介绍了上述步骤,包括可能遇到的问题、解决方法以及特定于某些ARM开发板的注意事项。它可能还包含了配置脚本示例、编译选项以及移植过程中的一些最佳实践。 ...
CCS5.5导入工程时出现See details below. Error: Import failed for project 'can_external_transmit_cpu01' because its compiler definition is not available. Please install the C2000v15.12 compiler before ...
在本教程中,我们将详细探讨如何在Windows环境下编译ffplay,以便在该平台上使用这个功能丰富的播放器。 首先,我们需要了解交叉编译的概念。交叉编译是指在一个平台上生成可在另一个平台上运行的代码。由于ffplay...
OpenSSL support: set "DCMTK_WITH_OPENSSL" to "ON" and "WITH_OPENSSLINC" as well as "WITH_OPENSSLLIB" to the respective paths for OpenSSL include files and libraries. TIFF support: set "DCMTK_WITH_...
根据提供的文件信息,我们可以了解到关于在Windows 7系统下使用MinGW64和MSYS工具将ARPACK库编译成适用于Microsoft Visual Studio 2005 x64平台的dll和lib文件的详细过程。以下详细说明标题和描述中提到的知识点: ...
MySQL是世界上最受欢迎的关系型数据库管理系统之一,而Java作为一种广泛应用的编程语言,经常被用来与MySQL进行数据交互。在Java中,我们使用Java Database Connectivity (JDBC) API来连接和操作数据库。MySQL与Java...
Before all : Pure-FTPd was designed on Unix and for Unix. The Windows port has been done because some people are forced to work on Win32 by their pointy hairy boss. For these people, Apache is a...
Online_Compile
(跑通sqlcipher-4.4.0)https://www.youtube.com/watch?v=SFHGeetZ0po
MySQL是世界上最受欢迎的关系型数据库管理系统之一,而MySQL Connector/J则是MySQL与Java应用程序之间的桥梁,它是一个JDBC(Java Database Connectivity)驱动程序,使得Java开发者能够方便地在Java应用中访问和...
标题中的“fastReport连接mysql插件”指的是FastReport这一报表工具与MySQL数据库之间的连接解决方案。FastReport是一款功能强大的报表设计和生成工具,广泛应用于.NET框架下的C#等编程语言。而MySQL则是一种流行的...
zlib-1.2.3 绝对好用 zlib-1.2.3 ..........\adler32.c ..........\algorithm.txt ..........\amiga ..........\.....\Makefile.pup ..........\.....\Makefile.sas ..........\as400 ..........\.....\...
compile 'mysql:mysql-connector-java:5.1.46' } ``` 然后,开发者可以使用 JDBC API 创建数据库连接、执行 SQL 语句、处理结果集等。例如: ```java import java.sql.*; public class MySQLJDBCExample { public...
compile
本篇将重点介绍如何在Python 3.4环境下安装和配置Eric6集成开发环境(IDE)以及PyQT5.5库。 首先,确保你已经正确地下载了对应版本的Python、PyQT5和Eric6。对于Python,这里推荐的是3.4.4版本,可以从官方网址下载...
Webservice接口,Cxf写的客户端, 是java项目,直接main方法运行. 开发环境:32位jdk1.7+Cxf3.1.4+tomcat7, 开发工具:myeclipse8.5. 成功访问服务端,并传送参数。测试通过。
"iperf3 static compile for arm-linux"这个标题表明我们将讨论如何在基于ARM架构的Linux系统上对iperf3进行静态编译。 静态编译是将所有依赖的库文件都编译进可执行文件中,使得最终生成的程序不依赖系统环境,...
This page is an introduction to the compilation of VLC for Android on Linux