메뉴 건너뛰기

리눅스 관련 모음

본문시작

설치관련
2014.10.16 18:18

처음 설치 해 보는 mariadb 소스설치

조회 수 5932 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

국산 통나무 수공예 남원제기, 남원목기

자료가 도움이 되셨다면
혼수용품제수용품 필요시
남원제기 공식 홈페이지 http://남원제기.kr
남원목기 공식 홈페이지 http://otchil.kr
에서 구매 해 주세요
정성껏 모시겠습니다.
 

1. https://downloads.mariadb.org/ 에서 stable을 최신버전 다운로드.

2. tar zxvf mariadb.tar.gz    압축해제

3. 컴파일 작업

[root@hahaha ~]# cmake \
-DWITH_READLINE=1 \
-DWITH_SSL=bundled \
-DWITH_ZLIB=system \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DENABLED_LOCAL_INFILE=1 \
-DWITH_EXTRA_CHARSETS=all \
-DWITH_ARIA_STORAGE_ENGINE=1 \
-DWITH_XTRADB_STORAGE_ENGINE=1 \
-DWITH_ARCHIVE_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_PARTITION_STORAGE_ENGINE=1 \
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
-DWITH_FEDERATEDX_STORAGE_ENGINE=1 \
-DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
-DCMAKE_INSTALL_PREFIX=/usr/local/mariadb \
-DMYSQL_DATADIR=/usr/local/mariadb/data


4. make ; make install

5. user and group

[root@hahaha ~]# groupadd -g 27 -o -r mysql
[root@hahaha ~]# useradd -M -g mysql -o -r -d /usr/local/mariadb/data -s /bin/false -c "MariaDB" -u 27 mysql


6.mkdir -p /usr/local/mariadb/InnoDB/{redoLogs,undoLogs,ib_data}

7. mkdir /usr/local/mariadb/logs /usr/local/mariadb/tmp

8. /usr/local/mariadb/scripts/mysql_install_db --basedir=/usr/local/mariadb --datadir=/usr/local/mariadb/data

9. chown -R mysql:mysql /usr/local/mariadb

10. ./support-files/mysql.server /etc/init.d/mysqld

11. chkconfig --add mysqld

12. echo "/usr/local/mariadb/lib" > /etc/ld.so.conf.d/mysql.conf

      또는

       echo "/usr/local/mariadb/lib" > /etc/ld.so.conf

13. 64bit의 경우 심볼릭 링크

       cd /usr/local/mariadb

       ln -s lib lib64

14. ldconfig

15. cp /usr/local/mariadb/support-files/my-huge.cnf /etc/my.cnf

16. service mysqld start

17. mysqladmin -u root password 'new-password'


   

  1. No Image 02May
    by 햇빛소년
    2011/05/02 by 햇빛소년
    Views 96768 

    Mail Server 구축(postfix, dovecot, amavisd-new, spamassassin, clamav)

  2. pcre최신버전 소스설치 후 modsecurity-apache 컴파일시 에러

  3. No Image 29Mar
    by 햇빛소년
    2011/03/29 by 햇빛소년
    Views 74367 

    Spam Assassin + ClamAV 바이러스 필터 연동하기

  4. No Image 09Apr
    by 햇빛소년
    2011/04/09 by 햇빛소년
    Views 72718 

    Amavisd 에서 spam filtering 수준 조절

  5. No Image 15May
    by 햇빛소년
    2012/05/15 by 햇빛소년
    Views 71618 

    iptables 삭제명령

  6. No Image 12May
    by 햇빛소년
    2011/05/12 by 햇빛소년
    Views 65710 

    Iptables 간략 사용하기

  7. No Image 09Apr
    by 햇빛소년
    2011/04/09 by 햇빛소년
    Views 62841 

    Install amavisd-new, SpamAssassin

  8. No Image 12May
    by 햇빛소년
    2011/05/12 by 햇빛소년
    Views 61266 

    리눅스 관리자가 알아두어야 할 50가지

  9. phpmyadmin 4.0 로그인시 에러..

  10. No Image 26Feb
    by 햇빛소년
    2012/02/26 by 햇빛소년
    Views 59770 

    Apache 2.4.1 소스설치시 에러에 대한 해결

  11. No Image 10Apr
    by 햇빛소년
    2011/04/10 by 햇빛소년
    Views 55529 

    rndc: connection to remote host closed 네임서버오류

  12. No Image 04Oct
    by 햇빛소년
    2011/10/04 by 햇빛소년
    Views 54831 

    su 명령의 문제점

  13. No Image 01May
    by 햇빛소년
    2011/05/01 by 햇빛소년
    Views 51988 

    httpd 스크립트 - /etc/rc.d

  14. No Image 07Jan
    by 햇빛소년
    2013/01/07 by 햇빛소년
    Views 51699 

    ModSecurity-Apache 설치, Lua, readline

  15. No Image 11May
    by 햇빛소년
    2011/05/11 by 햇빛소년
    Views 51629 

    [1원짜리 팁] hosts.deny

  16. No Image 20Mar
    by 햇빛소년
    2011/03/20 by 햇빛소년
    Views 51593 

    [Mysql] password설정 및 변경, root 비번 잃어버렸을 경우 변경법

  17. No Image 09May
    by 햇빛소년
    2011/05/09 by 햇빛소년
    Views 51588 

    MySQL에러[Warning] IP address '211.154.154.171' could not be resolved: no reverse address mapping.

  18. No Image 18Mar
    by 햇빛소년
    2011/03/18 by 햇빛소년
    Views 51490 

    DCC로 안티스팸 기능 확장하기

  19. SURBL을 이용해 스팸 정확도 극대화하기

  20. No Image 26Mar
    by 햇빛소년
    2011/03/26 by 햇빛소년
    Views 50850 

    MYSQL / 필드내 특정 문자열 치환하는 mysql 명령문

Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 Next
/ 10