본문 바로가기

반응형

mysql

MySQL Replication을 위한 계정을 생성하는 방법 MySQL Replication을 위한 계정을 생성하는 방법 1. MySQL 서버에 관리자 권한으로 로그인합니다. mysql -u root -p 2. Replication을 위한 새로운 사용자를 생성합니다. 사용자 이름과 비밀번호는 원하는 값으로 대체하세요. CREATE USER 'repluser'@'%' IDENTIFIED BY 'replpassword'; 여기서 'repluser'는 사용자 이름이고 '%'는 모든 호스트를 나타냅니다. '%' 대신에 특정 호스트를 지정할 수도 있습니다. 3. Replication 권한을 부여합니다. GRANT REPLICATION SLAVE ON *.* TO 'repluser'@'%'; 또는 GRANT REPLICATION SLAVE, REPLICATION CLIENT.. 더보기
MySQL의 root 사용자 패스워드를 설정하고 변경하는 방법 MySQL의 root 사용자 패스워드를 설정하고 변경하는 방법 1. MySQL 설치 후 root 패스워드 설정 MySQL을 처음 설치한 경우 root 사용자의 패스워드를 설정해야 합니다. sudo mysql_secure_installation 위 명령어를 실행하면 다음과 같은 대화형 설정 프롬프트가 나타납니다. Securing the MySQL server deployment. Enter password for user root: 여기서 새로운 root 패스워드를 입력하고 엔터를 눌러 계속 진행합니다. 2. 기존 root 패스워드 변경 만약 이미 root 패스워드가 설정되어 있다면, 다음과 같이 MySQL 콘솔에서 root 패스워드를 변경할 수 있습니다. mysql -u root -p 위 명령어를 실행하.. 더보기
MySQL Cannot find MySQL headers 오류 MySQL Cannot find MySQL headers 오류 이 오류는 소프트웨어나 라이브러리를 컴파일하거나 설치하는 동안 MySQL 헤더 파일을 찾을 수 없을 때 발생합니다. 컴파일 시 오류 configure: error: Cannot find MySQL headers. Use --with-mysql= to specify non-default path. 1. MySQL 개발 패키지 설치 MySQL 헤더 파일은 보통 MySQL 개발 패키지에 포함되어 있습니다. 따라서 시스템에 MySQL 개발 패키지가 설치되어 있는지 확인하고 없다면 설치해야 합니다. Debian/Ubuntu 계열 sudo apt-get install libmysqlclient-dev Red Hat/Fedora 계열 sudo yum in.. 더보기
[MySQL] mysql 캐릭터 셋 변경(utf8) MySQL 캐릭터 셋 변경(utf8) mysql> show variables like 'char%'; mysql> show table status from [데이터베이스명] like '테이블명'; vi /etc/my.cnf [client] default-character-set = utf8 [mysqld] init_connect = SET collation_connection = utf8_general_ci init_connect = SET NAMES utf8 default-character-set = utf8 character-set-server = utf8 collation-server = utf8_general_ci [mysqldump] default-character-set = utf8 [mysq.. 더보기
MySQL error: No curses/termcap library found MySQL error: No curses/termcap library found MySQL을 컴파일 설치 시 오류 checking for tgetent in -lncurses... no checking for tgetent in -lcurses... no checking for tgetent in -ltermcap... no checking for tgetent in -ltinfo... no checking for termcap functions library... configure: error: No curses/termcap library found MySQL을 컴파일 설치 중 "No curses/termcap library found"와 같은 오류 메시지가 표시되는 경우, 이 오류는 필요한 라이 브.. 더보기
[Cacti] cacti 설치1 APM 설치 1. apache 설치 # yum -y install httpd 2. mysqㅣ 설치 # yum -y install mysql mysql-server mysql-devel 3. 필요 라이브러리 설치 # yum -y install gd gd-devel libpng libpng-devel libjpeg libjpeg-devel freetype freetype-devel fontconfig fontconfig-devel libxml2 libxml2-devel openssl openssl-devel gmp gmp-devel mhash mhash-devel libmcrypt libmcrypt-devel 4. php 및 php-mysql 연동 설치 # yum -y install php php-mysql.. 더보기
[리눅스] mariadb 설치 mariadb 설치 현재 지원되는 버전은 10.3, 10.4, 10.5, 10.6(5년간 지원) 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) repository 설정(저장소 추가) vim /etc/yum.repos.d/MariaDB.repo # MariaDB 10.6 CentOS repository list - created 2022-12-09 11:34 UTC # https://mariadb.org/download/ [mariadb] name = MariaDB baseurl = https://mirror.rackspace.com/mariadb/yum/10.6/centos7-amd64 gpgkey=https://mirror... 더보기
MySQL "[error] Cannot find MySQL header files under yes" 오류를 해결하는 방법 MySQL "[error] Cannot find MySQL header files under yes" 오류를 해결하는 방법 [error] Cannot find MySQL header files under yes configure: error: Cannot find MySQL header files under yes. Note that the MySQL client library is not bundled anymore! 해당 오류 메시지는 MySQL의 헤더 파일들을 찾을 수 없다는 것을 나타내며, 일반적으로 C/C++ 프로그램이 MySQL과 관련된 코드를 컴파일하려고 할 때 발생합니다. 이 문제를 해결하기 위해서는 MySQL의 개발 패키지 또는 개발 헤더 파일을 설치해야 합니다. CentOS/RHEL/F.. 더보기

728x90
반응형