본문 바로가기

DB

[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] 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.. 더보기
[리눅스] MySQL innodb 설치 MySQL innodb 설치 2.1 MySQL 계정 생성 [root@sangchul mysql-5.1.56]# useradd -m -c "MySQL Server" -d /usr/local/mysql -s /bin/false -u 27 mysql 2.2 MySQL config(innodb 활성화) [root@sangchul mysql-5.1.49]# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-plugins=innobase,innodb_plugin --with-charset=euckr --with-extra-charsets=all 2.3 MySQL make && make install [root@sang.. 더보기
MySQL에서 데이터베이스를 생성하고 사용자에게 권한을 할당하는 방법 MySQL에서 데이터베이스를 생성하고 사용자에게 권한을 할당하는 방법새로운 데이터베이스를 생성하고 사용자에 대한 권한을 설정하는 SQL 쿼리를 사용하여 데이터베이스와 사용자를 만드는 방법입니다.1. 새로운 데이터베이스 생성"sangchul_db"라는 이름의 새로운 데이터베이스가 생성됩니다.CREATE DATABASE sangchul_db;2. 새로운 데이터베이스의 소유자 및 권한 설정"sangchul_db" 데이터베이스에 대한 "sangchul" 사용자의 권한을 설정합니다.INSERT INTO mysql.db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Grant_priv, Refer.. 더보기

반응형