Home > Database > Mysql Tutorial > 在Python 2.7平台下访问MySQL 5.0数据库

在Python 2.7平台下访问MySQL 5.0数据库

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:07:59
Original
931 people have browsed it

不用多说,下载MySQL-python-1.2.3.win32-py2.7.exe 下载地址为: 免费下载地址在 http://linux.linuxidc.com/ 用户名与密码都是

不用多说,下载MySQL-python-1.2.3.win32-py2.7.exe

下载地址为:

免费下载地址在

用户名与密码都是

具体下载目录在 /pub/2011/12/07/在Python 2.7平台下访问MySQL 5.0数据库/

可以在里面找到该安装包,安装完成后,它会自动在python 2.7/lib/site-package中安装相关mysql文件,安装好之后就不会再做其它配置,即可直接接使用。

下面我举个例子,来说明如何使用python访问mysql数据库,相当简单,明了,

请看下例:

  • 在Python 2.7平台下访问MySQL 5.0数据库

    无报错,说明可以使用mysql了。

    linux

    Related labels:
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template