'MySQL'에 해당되는 글 5건

카테고리 없음

mysql을 yum으로 삭제하고~! 예를 들어 yum remove mysql 과 같이
그렇게 되면 mysql과 mysql-server만 삭제가 되는데 그 뒤에 혹시나 수동으로 /usr/share/mysql 폴더를 지웠을 경우
yum install mysql-server 로 재 설치를 하게 되면 mysqld를 시동시키는 순간 제목과 같은 아래의 메시지를 뿜어낸다.

[ERROR] Can't find messagefile '/usr/local/share/mysql/english/errmsg.sys'

이럴 경우 수동으로 mysql 폴더를 지웠는데 설치할 때는 위의 디렉토리에 파일들을 생성하지 못해서 생긴 문제
즉 저것은 다른 패키지가 설치한다라는 것을 의미한다.


그럴 경우 아래와 같이 해주자.

# rpm -qa | grep -i mysql
perl-DBD-MySQL-4.013-3.el6.x86_64
mysql-server-5.1.61-4.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
mysql-libs-5.1.61-4.el6.x86_64

# rpm -e mysql-server-5.1.61-4.el6.x86_64 --nodeps
# rpm -e MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 --nodeps
# rpm -e mysql-libs-5.1.61-4.el6.x86_64 --nodeps
# rpm -e perl-DBD-MySQL-4.013-3.el6.x86_64 --nodeps

이렇게 되면 깔끔하게 관련된 mysql 패키지가 다 지워진다.
그 뒤에 다시 yum install mysql-server로 설치하고 service mysqld restart 를 하게 되면 재대로 설치 후 실행되는 것을 확인할 수 있다.


카테고리 없음
eventmachine
# yum install gcc-c++

mechanize
# yum install libxml2-devel
# yum install libxslt-devel

mysql
# yum install mysql-devel

swiftiply
mapper.o error
(a) modify
/usr/local/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/ext/fastfilerader/mapper.cpp
(b) add header
#include <cstring>
#include "unistd.h"
(c) Run "setup.rb"
/usr/local/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/ruby setup.rb

카테고리 없음

Permission denied: '/root/.python-eggs'\n\nThe Python egg cache
directory is currently set to:\n\n  /root/.python-eggs\n\nPerhaps your
account does not have write access to this directory?  You can\nchange
the cache directory by setting the PYTHON_EGG_CACHE environment


vim /etc/profile

add -> export PYTHON_EGG_CACHE="/tmp/.python-eggs"

reboot or re login

카테고리 없음
1. download MySQL-python-1.2.2.tar.gz and setuptools-0.6c5-py2.4.egg
wget http://www.mysql.com/downloads/index.html
wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c5-py2.4.egg

2. Install Mysql-python
tar xvfz MySQL-python-1.2.2.tar.gz
mv or cp setuptools-0.6c5-py2.4.egg ./MySQL-python-1.2.2
cd MySQL-python-1.2.2
python setup.py install

ENd

카테고리 없음

퍼옴

// --------------------------------------------------------------------------- 
OS : CentOS release 5.2 

* OS 설치시 package Group 내가 선택한 것.. 
- Editors 
- Engineering and Scientific 
- Development Tools 
- Administration Tools 
- System Tools 


mysql 설치 
mysql-5.0.24 

configure 시 오류 메세지 
오류 메세지 : checking for termcap functions library... configure: error: No curses/termcap library found 
해결 방법 : yum -y install ncurses-devel 

./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euckr --enable-thread-safe-client 
make && make install 

# cd /usr/local/mysql/bin 
# ./mysql_install_db 
# useradd -M mysql 
# chown -R mysql:mysql /usr/local/mysql/data 
# /usr/local/mysql/bin/mysqld_safe & 
# cd /usr/local/mysql/bin 
# ./mysqladmin -u root password 암호 
# ./mysql -u root -p mysql 

apache 설치 
httpd-2.0.63 
접속자 수 최대로 올리기 
# vi server/mpm/prefork/prefork.c 
[EDITOR]#define DEFAULT_SERVER_LIMIT 256 을 
[EDITOR]#define DEFAULT_SERVER_LIMIT 1280 으로 수정 
저장하고 아웃 
# vi server/mpm/worker/worker.c 
[EDITOR]#define DEFAULT_SERVER_LIMIT 16 을 
[EDITOR]#define DEFAULT_SERVER_LIMIT 20 으로 수정 
저장하고 아웃 
./configure --prefix=/usr/local/apache2 --enable-so --enable-modules=so --with-mpm=worker --enable-rewrite 
make && make install 


php 설치 
php-5.2.6 
configure 시 오류 
오류 메세지 : configure: error: xml2-config not found. Please check your libxml2 installation 
해결 방법 : yum install libxml2 libxml2-devel -y 

오류 메세지 : configure: error: Please reinstall the BZip2 distribution 
해결 방법 : yum -y install bzip2-devel 

오류 메세지 : configure: error: libjpeg.(a|so) not found. 
해결 방법 : yum -y install libjpeg-devel 

오류 메세지 : configure: error: libpng.(a|so) not found. 
해결 방법 : yum -y install libpng-devel 

오류 메세지 : configure: error: freetype.h not found. 
해결 방법 : yum -y install freetype-devel 

오류 메세지 : configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information. 
해결 방법 : yum -y install libc-client-devel 

오류 메세지 : configure: error: Kerberos libraries not found. 
해결 방법 : yum -y install krb5-devel 

오류 메세지 : configure: error: Cannot find OpenSSL's <evp.h> 
해결 방법 : yum -y install openssl-devel 

./configure --enable-bcmath --enable-ftp --enable-filepro --enable-libxml2 --enable-memory-limit --enable-sockets --enable-spl --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-versioning --enable-wddx --disable-cli --disable-debug --disable-dmalloc --disable-posix --disable-rpath --with-apxs2=/usr/local/apache2/bin/apxs --with-bz2 --with-freetype-dir --with-gd --with-gettext --with-imap=shared --with-jpeg-dir --with-kerberos --with-libxml-dir --with-mod-charset --with-mysql=/usr/local/mysql --with-png-dir --with-ttf --with-zlib --with-mysqli=/usr/local/mysql/bin/mysql_config --with-imap-ssl=/usr/lib --with-openssl 
ssl 추가시  


apache httpd.conf 설정 

NameVirtualHost *:80 
ServerName *:80 

KeepAlive On 
KeepAliveTimeout 2 
(2초간 접속을 끊지 않고 기다린다..) 

Timeout 30 
(dos 공격 방지) 

ServerLimit 20 --> 서버 갯수를 설정 
StartServers 20 --> 아파치를 처음 시작할때 생성하는 서버 갯수 
MaxClients 500 --> ThreadsPerChild * StartServers 값 
ThreadsPerChild 25 --> 서버 하나가 만들어 낼수 있는 쓰레드 갯수입니다. 최대 64개 
MinSpareThreads 25 --> 서버 하나가 만들어 낼수 있는 쓰레드의 최소 갯수입니다. 보통은 ThreadsPerChild 와 맞추어 줌 
MaxSpareThreads 500 --> 시스템 전체에서 만들어 낼수 있는 쓰레드 갯수의 최대치 


<VirtualHost *:80> 
    AddType application/x-httpd-php .php .html .inc .htm 
    #php 를 인식 시킬 확장자 명 
    ServerAdmin 이메일 
    #서버 관리자 이메일 
    DocumentRoot /home/test 
    #html 을 읽을 위치 
    ServerName 도메인 
    #도메인 주소 
#  php_admin_value auto_prepend_file /home/test/move_url/move_page.html 
    #도메인 접근시 최초 열어볼 페이지 주소 
#  RewriteEngine on 
    #Rewrite Engine 사용 여부 
#  RewriteRule ^/([a-zA-Z0-9]+)$ /home/test/rewrite.html?rewrite=$i 
    #Rewrite 사용시 load 할 페이지 주소 
    php_admin_flag register_globals On 
    #register_global 설정 
</VirtualHost> 

apache modules directory에서
#> chcon -c -v -R -u system_u -r object_r -t textrel_shlib_t libphp5.so

1
블로그 이미지

개발자

우와신난다