易截截图软件、单文件、免安装、纯绿色、仅160KB

转帖:Python2.6 下安装 mysql (Windows xp)

转自:
http://hi.baidu.com/feng2211/blog/item/8b86b6d9816a3f2710df9b79.html

http://i.19830102.com/archives/164
Python 版本:2.6
下载地址:http://www.python.org/download/releases/2.6.1/
下载msi文件并安装
MySQLdb版本: MySQL-python-1.2.2.win32-py2.6.exe
下载地址:http://home.netimperia.com/files/misc/MySQL-python-1.2.2.win32-py2.6.exe
参见:http://sourceforge.net/forum/forum.php?thread_id=2316047&forum_id=70460
常见问题:
1.ImportError: DLL load failed: 找不到指定的模块。
—————————————————————————————————-
D:\Program Files\Python2.6>python
Python 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import MySQLdb
Traceback (most recent call last):
  File “<stdin>”, line 1, in <module>
  File “D:\Program Files\Python2.6\Lib\site-packages\MySQLdb\__init__.py”, line 19, in <module>
    import _mysql
ImportError: DLL load failed: 找不到指定的模块。
—————————————————————————————————-
解决方法:下载libmmd.dll(附件)和libguide40.dll(附件)两个dll文件并复制到python安装目录的Lib\site-packages下。
参见:http://sourceforge.net/forum/message.php?msg_id=5613887
2.ImportError: DLL load failed: 找不到指定的模块。
————————————————————————————————&m


相关文档:

hibernate调用mysql中存储过程

一. 建表与初始化数据
  在mysql的test数据库中建立一张新表:tbl_user,建表语句如下:
  DROP TABLE IF EXISTS `user`;
CREATE TABLE `tbl_user` (
   `userid` varchar(50) NOT NULL,
   `name` varchar(50) default '',
   `blog` varchar(50) default '',
   ......

如何更改在Ubuntu下的MySQL的默认数据库存储位置

在Ubuntu下安装的MySQL默认配置下的数据库文件存储位置是在/var/lib/mysql,
MySQL数据库的文件结构是怎么样的呢,对于这样子创建的数据库命令:
  CREATE DATABASE mysqldb
  在默认的数据库存储位置下就会有个文件夹mysqldb。要操作数据库首先得停止数据库进程:
  $sudo /etc/init.d/mysql stop
本文以转 ......

Mysql中Timestamp的使用

Timestamp翻译过来也叫“时间戳”,可以包含“年-月-日-时-分-秒-毫秒”,是java.util.Date下的一个子类。如果想实现向Mysql中插入带有时分秒的时间,在表结构里需要指定字段类型为DateTime,Java程序里在获取系统时间后需要转换为时分秒的格式,再转换为Timestamp即可,如下所示:
Date dt = new Dat ......

mysql的配置文件my.ini

# MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#
#
# Installation Instructions
# ----------------------------------------------------------------------
#
# On Li ......

IIS6.0+PHP+MYSQL配置

Win2003server 下架设PHPWind产品环境
安装前准备:1、安装好iis6
            
             
            
&nbs ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号