데이터 베이스 MySQL 튜토리얼 Installation MariaDB5.5 on RHEL6_MySQL

Installation MariaDB5.5 on RHEL6_MySQL

Jun 01, 2016 pm 01:28 PM

RHELMariaDB

bitsCN.com

Installation MariaDB5.5 on RHEL6

 

yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel ssse2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers gettext-devel libXpm-devel libtool perl-DBD-MySQL bison  cmake  [root@test mariadb-5.5.33a]# mkdir -p /data/mariadb5.5 /service/mariadb5.5  [root@test mariadb-5.5.33a]# cmake . -DCMAKE_INSTALL_PREFIX=/service/mariadb5.5 -DMYSQL_UNIX_ADDR=/data/mariadb5.5/mariadb.sock -DMYSQL_DATADIR=/data/mariadb5.5 -DSYSCONFDIR=/service/mariadb5.5 -DMYSQL_USER=mysql -DMYSQL_TCP_PORT=30308 -DWITH_XTRADB_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1 -DWITH_EXTRA_CHARSETS=1 -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=all -DWITH_BIG_TABLES=1 -DWITH_DEBUG=0 -DCOMPILATION_COMMENT=ZWC-MariaDB  [root@test mariadb-5.5.33a]# make && make install  [root@test ~]# cat /service/mariadb5.5/my.cnf   [client]    port            = 30308  socket          = /data/mariadb5.5/mariadb.sock    
로그인 후 복사

[mysqld]    port            = 30308    socket          = /data/mariadb5.5/mariadb.sock    skip-external-locking    back_log = 500    lower_case_table_names = 1    skip-name-resolve    max_connections = 1024    table_open_cache = 512    binlog_cache_size = 1M    max_heap_table_size = 300M    read_buffer_size = 10M    read_rnd_buffer_size = 16M    sort_buffer_size = 8M    join_buffer_size=4M    thread_cache_size = 4    thread_concurrency = 4    query_cache_size = 200M    ft_min_word_len = 4    thread_stack = 192K    tmp_table_size = 200M    slow_query_log    long_query_time = 2    slow_query_log_file = /data/mariadb5.5/slowsql.sql    key_buffer_size = 32M    bulk_insert_buffer_size = 64M    myisam_sort_buffer_size = 128M    myisam_max_sort_file_size = 200M    myisam_repair_threads = 4    myisam_recover        # setup innodb    innodb_additional_mem_pool_size = 16M    innodb_buffer_pool_size = 2500M    innodb_data_file_path = ibdata1:10M:autoextend    innodb_write_io_threads = 4    innodb_read_io_threads = 4    innodb_thread_concurrency = 16    innodb_flush_log_at_trx_commit = 2    innodb_log_buffer_size = 8M    innodb_log_file_size = 512M    innodb_log_files_in_group = 3    innodb_max_dirty_pages_pct = 90    innodb_lock_wait_timeout = 120    init_connect = 'SET autocommit=0'    innodb-file-per-table = 1    innodb-open-file = 500    innodb_flush_method=O_DIRECT    open_files_limit = 65535      expire_logs_days = 5    event_scheduler = 1        log-bin=binlog-master    binlog_format=mixed    server-id       = 1        [mysqldump]    quick    max_allowed_packet = 16M        [mysql]    prompt=//u@//d //r://m://s>    no-auto-rehash        [myisamchk]    key_buffer_size = 128M    sort_buffer_size = 128M    read_buffer = 2M    write_buffer = 2M        [mysqlhotcopy]    interactive-timeout    [root@test ~]# /service/mariadb5.5/scripts/mysql_install_db --defaults-file=/service/mariadb5.5/my.cnf --basedir=/service/mariadb5.5 --datadir=/data/mariadb5.5 --user=mysql  Installing MariaDB/MySQL system tables in '/data/mariadb5.5' ...  OK  Filling help tables...  OK    To start mysqld at boot time you have to copy  support-files/mysql.server to the right place for your system    PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !  To do so, start the server, then issue the following commands:    '/service/mariadb5.5/bin/mysqladmin' -u root password 'new-password'  '/service/mariadb5.5/bin/mysqladmin' -u root -h 192.168.1.9 password 'new-password'    Alternatively you can run:  '/service/mariadb5.5/bin/mysql_secure_installation'    which will also give you the option of removing the test  databases and anonymous user created by default.  This is  strongly recommended for production servers.    See the MariaDB Knowledgebase at http://kb.askmonty.org or the  MySQL manual for more instructions.    You can start the MariaDB daemon with:  cd '/service/mariadb5.5' ; /service/mariadb5.5/bin/mysqld_safe --datadir='/data/mariadb5.5'    You can test the MariaDB daemon with mysql-test-run.pl  cd '/service/mariadb5.5/mysql-test' ; perl mysql-test-run.pl    Please report any problems with the '/service/mariadb5.5/scripts/mysqlbug' script!    The latest information about MariaDB is available at http://mariadb.org/.  You can find additional information about the MySQL part at:  http://dev.mysql.com  Support MariaDB development by buying support/new features from  Monty Program Ab. You can contact us about this at sales@montyprogram.com.  Alternatively consider joining our community based development effort:  http://kb.askmonty.org/en/contributing-to-the-mariadb-project/  [root@test ~]# /service/mariadb5.5/bin/mysqld_safe --defaults-file=/service/mariadb5.5/my.cnf --basedir=/service/mariadb5.5 --datadir=/data/mariadb5.5 --user=mysql &  [1] 19871  [root@test ~]# 131101 22:58:50 mysqld_safe Logging to '/data/mariadb5.5/test.err'.  131101 22:58:50 mysqld_safe Starting mysqld daemon with databases from /data/mariadb5.5  [root@test ~]# /service/mariadb5.5/bin/mysqladmin -uroot password   New password:   Confirm new password:   [root@test ~]#   [root@test ~]#   [root@test ~]# /service/mariadb5.5/bin/mysql -uroot -p  Enter password:   ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)  [root@test ~]# /service/mariadb5.5/bin/mysql -uroot -p  Enter password:   Welcome to the MariaDB monitor.  Commands end with ; or /g.  Your MariaDB connection id is 5  Server version: 5.5.33a-MariaDB-log ZWC-MariaDB    Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.    Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.    MariaDB [(none)]> delete from mysql.user where password='';  Query OK, 5 rows affected (0.03 sec)    MariaDB [(none)]> delete from mysql.db where user='';  Query OK, 2 rows affected (0.04 sec)    MariaDB [(none)]> select @@version;  +---------------------+  | @@version           |  +---------------------+  | 5.5.33a-MariaDB-log |  +---------------------+  1 row in set (0.00 sec)    MariaDB [(none)]> show engines;  +--------------------+---------+----------------------------------------------------------------------------+--------------+------+------------+  | Engine             | Support | Comment                                                                    | Transactions | XA   | Savepoints | +--------------------+---------+----------------------------------------------------------------------------+--------------+------+------------+  | MRG_MYISAM         | YES     | Collection of identical MyISAM tables                                      | NO           | NO   | NO         |  | InnoDB             | DEFAULT | Percona-XtraDB, Supports transactions, row-level locking, and foreign keys | YES          | YES  | YES        |  | CSV                | YES     | CSV storage engine                                                         | NO           | NO   | NO         |  | BLACKHOLE          | YES     | /dev/null storage engine (anything you write to it disappears)             | NO           | NO   | NO         |  | MyISAM             | YES     | MyISAM storage engine                                                      | NO           | NO   | NO         |  | PERFORMANCE_SCHEMA | YES     | Performance Schema                                                         | NO           | NO   | NO         |  | MEMORY             | YES     | Hash based, stored in memory, useful for temporary tables                  | NO           | NO   | NO         |  | Aria               | YES     | Crash-safe tables with MyISAM heritage                                     | NO           | NO   | NO         |  +--------------------+---------+----------------------------------------------------------------------------+--------------+------+------------+  8 rows in set (0.00 sec)    MariaDB [(none)]>   
로그인 후 복사

 

 

Percona-XtraDB, Supports transactions, row-level locking, and foreign keys

 

bitsCN.com
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.

핫 AI 도구

Undresser.AI Undress

Undresser.AI Undress

사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover

AI Clothes Remover

사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool

Undress AI Tool

무료로 이미지를 벗다

Clothoff.io

Clothoff.io

AI 옷 제거제

AI Hentai Generator

AI Hentai Generator

AI Hentai를 무료로 생성하십시오.

인기 기사

R.E.P.O. 에너지 결정과 그들이하는 일 (노란색 크리스탈)
1 몇 달 전 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 최고의 그래픽 설정
1 몇 달 전 By 尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. 크로스 플레이가 있습니까?
1 몇 달 전 By 尊渡假赌尊渡假赌尊渡假赌

뜨거운 도구

메모장++7.3.1

메모장++7.3.1

사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전

SublimeText3 중국어 버전

중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기

스튜디오 13.0.1 보내기

강력한 PHP 통합 개발 환경

드림위버 CS6

드림위버 CS6

시각적 웹 개발 도구

SublimeText3 Mac 버전

SublimeText3 Mac 버전

신 수준의 코드 편집 소프트웨어(SublimeText3)

InnoDB 전체 텍스트 검색 기능을 설명하십시오. InnoDB 전체 텍스트 검색 기능을 설명하십시오. Apr 02, 2025 pm 06:09 PM

InnoDB의 전체 텍스트 검색 기능은 매우 강력하여 데이터베이스 쿼리 효율성과 대량의 텍스트 데이터를 처리 할 수있는 능력을 크게 향상시킬 수 있습니다. 1) InnoDB는 기본 및 고급 검색 쿼리를 지원하는 역 색인화를 통해 전체 텍스트 검색을 구현합니다. 2) 매치 및 키워드를 사용하여 검색, 부울 모드 및 문구 검색을 지원합니다. 3) 최적화 방법에는 워드 세분화 기술 사용, 인덱스의 주기적 재건 및 캐시 크기 조정, 성능과 정확도를 향상시키는 것이 포함됩니다.

Alter Table 문을 사용하여 MySQL에서 테이블을 어떻게 변경합니까? Alter Table 문을 사용하여 MySQL에서 테이블을 어떻게 변경합니까? Mar 19, 2025 pm 03:51 PM

이 기사는 MySQL의 Alter Table 문을 사용하여 열 추가/드롭 테이블/열 변경 및 열 데이터 유형 변경을 포함하여 테이블을 수정하는 것에 대해 설명합니다.

Windows 7에 MySQL을 설치할 수 있습니까? Windows 7에 MySQL을 설치할 수 있습니까? Apr 08, 2025 pm 03:21 PM

예, MySQL은 Windows 7에 설치 될 수 있으며 Microsoft는 Windows 7 지원을 중단했지만 MySQL은 여전히 ​​호환됩니다. 그러나 설치 프로세스 중에 다음 지점이 표시되어야합니다. Windows 용 MySQL 설치 프로그램을 다운로드하십시오. MySQL의 적절한 버전 (커뮤니티 또는 기업)을 선택하십시오. 설치 프로세스 중에 적절한 설치 디렉토리 및 문자를 선택하십시오. 루트 사용자 비밀번호를 설정하고 올바르게 유지하십시오. 테스트를 위해 데이터베이스에 연결하십시오. Windows 7의 호환성 및 보안 문제에 주목하고 지원되는 운영 체제로 업그레이드하는 것이 좋습니다.

MySQL에서 인덱스를 사용하는 것보다 전체 테이블 스캔이 더 빠를 수 있습니까? MySQL에서 인덱스를 사용하는 것보다 전체 테이블 스캔이 더 빠를 수 있습니까? Apr 09, 2025 am 12:05 AM

전체 테이블 스캔은 MySQL에서 인덱스를 사용하는 것보다 빠를 수 있습니다. 특정 사례는 다음과 같습니다. 1) 데이터 볼륨은 작습니다. 2) 쿼리가 많은 양의 데이터를 반환 할 때; 3) 인덱스 열이 매우 선택적이지 않은 경우; 4) 복잡한 쿼리시. 쿼리 계획을 분석하고 인덱스 최적화, 과도한 인덱스를 피하고 정기적으로 테이블을 유지 관리하면 실제 응용 프로그램에서 최상의 선택을 할 수 있습니다.

MySQL 연결에 대한 SSL/TLS 암호화를 어떻게 구성합니까? MySQL 연결에 대한 SSL/TLS 암호화를 어떻게 구성합니까? Mar 18, 2025 pm 12:01 PM

기사는 인증서 생성 및 확인을 포함하여 MySQL에 대한 SSL/TLS 암호화 구성에 대해 설명합니다. 주요 문제는 자체 서명 인증서의 보안 영향을 사용하는 것입니다. [문자 수 : 159]

인기있는 MySQL GUI 도구는 무엇입니까 (예 : MySQL Workbench, Phpmyadmin)? 인기있는 MySQL GUI 도구는 무엇입니까 (예 : MySQL Workbench, Phpmyadmin)? Mar 21, 2025 pm 06:28 PM

기사는 MySQL Workbench 및 Phpmyadmin과 같은 인기있는 MySQL GUI 도구에 대해 논의하여 초보자 및 고급 사용자를위한 기능과 적합성을 비교합니다. [159 자].

InnoDB에서 클러스터 된 인덱스와 비 클러스터 된 인덱스 (2 차 지수)의 차이. InnoDB에서 클러스터 된 인덱스와 비 클러스터 된 인덱스 (2 차 지수)의 차이. Apr 02, 2025 pm 06:25 PM

클러스터 인덱스와 비 클러스터 인덱스의 차이점은 1. 클러스터 된 인덱스는 인덱스 구조에 데이터 행을 저장하며, 이는 기본 키 및 범위별로 쿼리에 적합합니다. 2. 클러스터되지 않은 인덱스는 인덱스 키 값과 포인터를 데이터 행으로 저장하며 비 예산 키 열 쿼리에 적합합니다.

MySQL에서 큰 데이터 세트를 어떻게 처리합니까? MySQL에서 큰 데이터 세트를 어떻게 처리합니까? Mar 21, 2025 pm 12:15 PM

기사는 MySQL에서 파티셔닝, 샤딩, 인덱싱 및 쿼리 최적화를 포함하여 대규모 데이터 세트를 처리하기위한 전략에 대해 설명합니다.

See all articles