Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Cygwin install Python MySQLdb     - Git uses a standard process (Linux)

- Create several practical points of high security PHP site (Linux)

- Ubuntu Live CD by updating Grub resume boot the Boot Menu (Linux)

- Ubuntu / Fedora / CentOS system how to install Plex Media Server 0.9.9 (Linux)

- To help you easily protect the Linux System (Linux)

- Git uses a basic tutorial (Linux)

- OpenSUSE installation on CentOS6 (GUI) (Linux)

- UUID in Java (Programming)

- Nginx Module Development - get user ip (Server)

- Stunning exclamation point at the Linux command line (Linux)

- Oracle Listener can not start (TNS-12555, TNS-12560, TNS-00525) (Database)

- How to manage your to-do list with the Go For It on Ubuntu (Linux)

- Rman Oracle database backup and recovery plan (Database)

- The SVN installation, configuration and start - up under Linux (CentOS 6.5) (Server)

- Linux Kernel 4.2 Installation Instructions (Linux)

- Ubuntu Linux to create and increase the Swap partition tutorial (Linux)

- How to display a dialog Bash Shell script (Programming)

- Ubuntu install VMware Workstation 11 tutorials at 14.04 / 14.10 (Linux)

- Live Wallpaper for Linux release adds dynamic background (Linux)

- Timing task Crontab under Linux system (Linux)

 
         
  Cygwin install Python MySQLdb
     
  Add Date : 2018-11-21      
         
       
         
  1) cygwin update
Run cygwin / setup-x86_64.exe

Enter a mysql, select the following packages installed:

libmysqlclient-devel
libmysqlclient18

libmysqld-devel

b Enter gcc, install the appropriate package

2) setuptools
$ Wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
$ Tar zxvf setuptools-0.6c11.tar.gz
$ Cd setuptools-0.6c11
$ Python setup.py build
$ Python setup.py install


3) MySQL-python-1.2.3
$ Wget http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz
$ Tar zxvf MySQL-python-1.2.3.tar.gz
$ Cd MySQL-python-1.2.3

$ Vi site.cfg


--------------------------
[Options]
# Embedded: link against the embedded server library
# Threadsafe: use the threadsafe client
# Static: link against a static library (probably required for embedded)

embedded = False
threadsafe = True
static = False

# The path to mysql_config.
# Only use this if mysql_config is not on your PATH, or you have some weird
# Setup that requires it.
#### Mysql_config = / usr / local / bin / mysql_config
mysql_config = / bin / mysql_config

# The Windows registry key for MySQL.
# This has to be set for Windows builds to work.
# Only change this if you have a different version.
#### Registry_key = SOFTWARE \ MySQL AB \ MySQL Server 5.0
--------------------------


$ Python setup.py build

$ Python setup.py install
     
         
       
         
  More:      
 
- JavaScript basic types and type conversion (Programming)
- Enterprise Hadoop cluster architecture - DNS installation (Server)
- Shuffle Process Arrangement in MapReduce (Server)
- Linux performance monitoring - CPU, Memory, IO, Network (Linux)
- Sysdig: system troubleshooting tool (Linux)
- Modular JavaScript (Programming)
- Linux command execution judge sentences -;, &&, || (Linux)
- Automatic and Manual Proxy Settings Switch GNOME Shell Extension Proxy Switcher Recommend (Linux)
- Linux operation and maintenance of the automated installation and deployment RHEL7.0 Cobbler (Linux)
- Sublime Text 3 (Linux)
- Android recyclerview cardview (Programming)
- Linux command line ten magic usage (Linux)
- VNC configuration detailed analysis under Linux (Linux)
- MySQL use the integer type (Database)
- Ganglia Python plug-in the process of writing notes (Linux)
- CentOS / Linux SWAP partitions added (Linux)
- RHEL7.0 environment Linux kernel upgrade (Linux)
- CentOS7 Kubernetes used on container management (Server)
- CentOS 6.5 install Firefox (Linux)
- After reloading the cinder-volume OpenStack not start properly (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.