1.3. Install MySQL, mysqldb, pycharm and other software

Source: Internet
Author: User
Tags mysql manual java se

1.3.1, installing MySQL

(version will be consistent with the company's online environment)

Refer to the MySQL manual for details. Add a remote access user right after the installation is complete, and the following example will be used.

For example: User:mysql; passwd:123456

1.3.2, installation MySQLdb

MySQLdb the engine that connects the MySQL database to Python;

Official address: http://sourceforge.net/projects/mysql-python/

Http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz/download

Installation:

$tar –ZXVF mysql-python-1.2.3.tar.gz

$CD mysql-python-1.2.3

$python setup.py Build

$python setup.py Install

Test after successful installation:

$python

>>>import MySQLdb

No exception information indicates successful installation

1.3.3, installation Ide-pycharm

Pycharm is a python-developed IDE with a good support for the Django framework, as well as Windows and Linux versions, which are recommended.

1.3.3.1, why do I need to use the IDE:

ü Development efficiency is higher.

Üide interface more user-friendly

Üide to configure auto-wrap indentation, display line numbers, functions, variable hints, automatic completion is more convenient.

Üproject can be directly operated on various files, easy to switch files

1.3.3.2, pre-installation preparation

Windows environment (JAVA–JRE installed by default, no need to download installation JRE or JAVA-JDK)

Otherwise, download the installation to this address:

http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html# Jdk-6u43-oth-jpr

Then refer to the Java Configuration environment variables.

The following is mainly about the installation method under Linux:

Enter Java in the terminal, indicating that there is no Java environment in this system environment if an unknown command prompt is prompted. If it is very old version need to uninstall reinstall Java JDK

The version I installed here is the Java SE Development Kit 6u43, which corresponds to the version number: Linux x64

Jdk-6u43-linux-x64-rpm.bin

http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html# Jdk-6u43-oth-jpr

Installation method:

$chmod 777 Jdk-6u43-linux-x64-rpm.bin

$./Jdk-6u43-linux-x64-rpm.bin #选择Yes同意安装协议

$rpm –IVH Jdk-6u43-linux-x64-rpm.bin #选择Yes知道安装完成

To configure environment variables:

$vi/etc/profile

For example, my machine was added to the next few lines.

#set Java Environment

Export java_home=/usr/java/jdk1.6.0_43

Export classpath=.: $JAVA _home/jre/lib/rt.jar: $JAVA _home/lib/dt.jar: $JAVA _home/lib

/tools.jar

Export path= $PATH: $JAVA _home/bin

In terminal input: Java–version can display Java version information

1.3.3.3, installation Pycharm

CentOS requires a GNOME or KDE desktop environment.

Official address: http://www.jetbrains.com/pycharm/

Centos-64bit:http://download-ln.jetbrains.com/python/pycharm-2.7.2.tar.gz

To start the installation:

$tar –ZXVF pycharm-2.7.2.tar.gz

$CD pycharm-2.7.2.tar.gz

$./pycharm.sh

You can use Pycharm (or boot directly from the installation directory bin/pycharm.sh) to finish installing the backward desktop environment.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.