Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Cygwin install Python MySQLdb     - Linux program analysis tool: ldd and nm (Linux)

- Linux supports serial output method (Linux)

- Linux6.1 / 6.5 dual-NIC Binding (Linux)

- Create a project using Android Studio LinearLayout (Programming)

- MariaDB 10 Multi-source replication (Database)

- Python is not C (Programming)

- Java Concurrency - multiple threads of HelloWorld (Programming)

- Docker improve safety (Server)

- Ubuntu Learning Advanced article - to teach you to further enhance system security (Linux)

- Linux operating system buffer overflow attacks Countermeasures (Linux)

- Git Rebase Tutorial: Using Git Rebase turn back the clock (Linux)

- Single Instance ASM under CRS-4124, CRS-4000 error handling (Database)

- Node.js developers must know four JavaScript concepts (Programming)

- tcpdump Linux system security tools (Linux)

- Sublime Text 3 best features, plug-ins and settings (Linux)

- Red Hat Linux mount U disk (Linux)

- Performance comparison Fibonacci recursive and non-recursive (Programming)

- Java filter (Programming)

- The user how to install Notepadqq 0.41.0 under ubuntu and debian (Linux)

- Oracle lag () and lpad () function (Database)

 
         
  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:      
 
- Elaborate .NET Multithreading: Concepts (Programming)
- Python type way of comparison (Programming)
- DM9000 timing settings (Programming)
- Java reflection summary (Programming)
- Linux delete duplicate files Artifact: dupeGuru (Linux)
- Linux installation Jetty deployment under RedHat5 8 (Linux)
- Linux uses a screen recording under RecordMyDesktop (Linux)
- Use eCryptFS encrypt files and directories on Linux (Linux)
- Linux filtration empty file command summary (Linux)
- Linux file permissions to modify the command: chmod (Linux)
- MySQL TIMESTAMP and DATETIME (Database)
- ImportTsv-HBase data import tool (Database)
- The relationship between UNIX and Linux (Linux)
- Stunning exclamation point at the Linux command line (Linux)
- Performance Optimization: Using Ramlog transfer log files to memory (Linux)
- Joseph Central Java implementation (Programming)
- Profile Linux users login shell and login to read (Linux)
- Linux installation skynet issue summary (Linux)
- CentOS 6.4 OpenNebula installation (Linux)
- Linux iptables: combat scenes (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.