mysql 썸네일형 리스트형 [mysql] 리눅스 쉘상태에서 DB 및 테이블 생성(mysqlshow) DB 생성 [root@byungun ~]# cat temp.sql create database tempdb; [root@byungun ~]# mysql -u root -p mysql < ./temp.sql [root@byungun ~]# mysqlshow -u root -p Enter password: +--------------------+ | Databases | +--------------------+ | information_schema | | first | | mysql | | tempdb | | test | +--------------------+ [root@byungun ~]# 테이블 생성 [root@byungun ~]# cat temp_table.sql create table temptab.. 더보기 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 캐릭터셋(문자 인코딩)을 UTF-8로 변경하는 방법 MySQL 캐릭터셋(문자 인코딩)을 UTF-8로 변경하는 방법다국어 데이터를 저장하거나 웹 애플리케이션과 연동할 때, 데이터베이스의 문자 인코딩(Character Set) 설정은 매우 중요합니다. MySQL에서는 기본 문자셋으로 **UTF-8(utf8 또는 utf8mb4)**을 사용하는 것이 일반적인 추세입니다.1. 현재 문자셋 설정 확인현재 설정된 문자셋을 확인합니다.mysql> SHOW VARIABLES LIKE 'char%';MySQL 서버의 문자셋 관련 변수들을 출력합니다.+--------------------------+----------------------------+| Variable_name | Value |+------------.. 더보기 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.. 더보기 이전 1 ··· 5 6 7 8 9 10 다음