메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


mariadb AIX 7.1에 MariaDB 10.2 소스 설치

총관리자 2016.09.24 11:37 조회 수 : 5455

1. MariaDB-source 버젼 다운 받기
http://mariadb.org - > https://downloads.mariadb.org/
https://mariadb.com/kb/en/mariadb/source-getting-the-mariadb-source-code/  -> https://github.com/MariaDB/server/tree/10.2
혹은
https://downloads.mariadb.org/mariadb/10.1.17/


2. 업로드및 압축출기
$gzip -d mariadb-10.1.17.tar.gz
$tar -xvf mariadb-10.1.17.tar

3. mariadb폴더로 이동
cd mariadb-10.1.17

 
5. ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=utf8 --with-mysql-usr=mysql --sysconfdir=/etc --enable-thread-safe-client
 
./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euckr --with-mysql-usr=mysql --sysconfdir=/etc --enable-thread-safe-client
 
./configure --prefix=/home/wisenut/sf-1/mysql --localstatedir=/home/wisenut/sf-1/mysql/data --with-charset=utf8 --with-mysql-usr=wisenut --sysconfdir=/etc --enable-thread-safe=client
 
./configure --prefix=/home/kwisenut/sf-1v4.5/mysql/mysql5 --localstatedir=/home/kwisenut/sf-1v4.5/mysql/mysql5/data --with-charset=utf8 --with-mysql-usr=kwisenut --sysconfdir=/etc --enable-thread-safe=client
 
./configure --prefix=/home/kwisenut/sf-1v4.5/mysql/mysql-5.1.17 --localstatedir=/home/kwisenut/sf-1v4.5/mysql/mysql-5.1.17/data --with-charset=utf8  
 
6. make
 
7. make install
 
8. ./scripts/mysql_install_db
 
9. cat >> /etc/ld.so.conf
/usr/local/mysql/lib (엔터치고 ctrl+c 입력)
 
10. ldconfig
 
11. cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
 
12. mysql 계정 생성
groupadd mysql
useradd -g mysql mysql
chown root.mysql -R /usr/local/mysql
chown mysql.mysql -R /usr/local/mysql/data
chgrp -R mysql /usr/local/mysql
 
 
13. /usr/local/mysql/bin/mysqld_safe --user=mysql &
 
14. /usr/local/mysql/bin/mysql
     use mysql
     update user set password=password('root!@') 
     update user set password=password('root') 
     where user = 'root';
     delete from user where user='';
     flush privileges;
 
15. /usr/local/mysql/bin/mysqladmin -u root -p showdown
 
16. /usr/local/mysql/bin/msyqld_safe -u root &

*참고 : 위에 내용은 정상적인 경우이고 AIX에서 source로 설치하기는 실패함

번호 제목 날짜 조회 수
310 데이타 분석및 머신러닝에 도움이 도움이 되는 사이트 2016.11.04 3380
309 java스레드 덤프 분석하기 file 2016.11.03 2114
308 centos 6에서 mariadb 5.1 to 10.0 으로 upgrade 2016.11.01 3003
307 Spark Streaming 코드레벨단에서의 성능개선 2016.10.31 3069
306 Flume과 Kafka를 사용한 초당 100만개 로그 수집 테스트 file 2016.10.31 4340
305 Flume을 이용한 데이타 수집시 HBase write 성능 튜닝 file 2016.10.31 3113
304 How-to: Build a Complex Event Processing App on Apache Spark and Drools file 2016.10.31 2849
303 How-to: Tune Your Apache Spark Jobs (Part 2) file 2016.10.31 3457
302 mybatis와 spring을 org.apache.commons.dbcp2.BasicDataSource의 DataSource로 연동할때 DB설정(참고) 2016.10.31 4324
301 Caused by: java.sql.SQLNonTransientConnectionException: Could not read resultset: unexpected end of stream, read 0 bytes from 4 오류시 확인/조치할 내용 2016.10.31 6942
300 VisualVM 1.3.9을 이용한 spark-submit JVM 모니터링을 위한 설정및 spark-submit실행 옵션 2016.10.28 4904
299 VisualVM 1.3.9을 이용한 JVM 모니터링 file 2016.10.27 3389
298 운영중인 상태에서 kafka topic삭제하고 재생성하여 처리되지 않은 메세지 모두 삭제하기 2016.10.24 4245
297 producer / consumer구현시 설정 옵션 설명 2016.10.19 3622
296 java.lang.OutOfMemoryError: unable to create new native thread오류 발생지 조치사항 2016.10.17 4160
295 동시에 많은 요청이 endpoint로 몰려서java.net.NoRouteToHostException가 발생하는 경우의 처리방법 2016.10.17 3408
294 AIX 7.1에 Python 2.7.11설치하기 2016.10.06 4781
293 프로그래밍 언어별 딥러닝 라이브러리 정리 file 2016.10.05 3616
292 모두를 위한 머신러닝과 딥러닝의 강의 file 2016.09.27 3061
291 DBCP Datasource(org.apache.commons.dbcp.BasicDataSource) 설정 및 속성 설명 2016.09.26 3716
위로