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