zoukankan      html  css  js  c++  java
  • Django+MySQLDB配置

    Django+MySQLDB配置
     
    来源: ChinaUnix博客  日期: 2009.07.09 16:25 (共有条评论) 我要评论
     

                    一、安装Mysql
    (1)下载mysql-5.0.83
    (2)运行如下命令
    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)修改MySQL的root密码
    (4)安装MySQL-python-1.2.2.tar.gz
    可能要修改site.cfg文件
    (5)加入库路径
    echo "/usr/local/lib/mysql" > /etc/ld.so.conf.d/mysql.conf
    ldconfig 
                    
                    
  • 相关阅读:
    Neko Performs Cat Furrier Transform CodeForces
    Neko does Maths CodeForces
    Game HDU
    HDU
    CF1155D Beautiful Array 贪心,dp
    二维差分
    B
    一维差分
    状压dpHDU
    [转载] HBase vs Cassandra:我们迁移系统的原因
  • 原文地址:https://www.cnblogs.com/L-H-R-X-hehe/p/4084405.html
Copyright © 2011-2022 走看看