DJANGO+MYSQLDB Configuration

Source: Internet
Author: User

DJANGO+MYSQLDB Configuration
Source: Chinaunix Blog Date: 2009.07.09 16:25 (Total reviews ) I want to comment

                One, install MySQL
(1) Download mysql-5.0.83
(2) Run the following command
shell> groupadd mysql
shell> useradd-g mysql mysql
shell> gunzip  cd Mysql-version
shell>./configure  --enable-thread-safe-client--prefix=/usr/local/mysql
Shell > Make
shell> make install
shell> cp support-files/my-medium.cnf/etc/my.cnf
shell> cd/usr/local /mysql
shell> chown-r MySQL.
Shell> chgrp-r MySQL.
shell> bin/mysql_install_db--user=mysql
shell> chown-r root.
shell> chown-r mysql var
shell> bin/mysqld_safe--user=mysql &
(3) Modify the root password of MySQL
(4) Install mysql-python-1.2.2.tar.gz
may want to modify Site.cfg file
(5) Join library path
echo "/usr/local/lib/mysql" >/etc/ ld.so.conf.d/mysql.conf
ldconfig 
               &NBSP
                

Django+mysqldb Configuration

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.