1 / 70

MySQL

MySQL. RENO. 목차. 03-05 준비 06-42 설치 43 데몬의 실행과 종료 44-46 사용자 계정 추가 47-48 사용자 계정 삭제 49-50 사용자 계정 비밀번호 변경 51-52 root 계정 비밀번호 변경 53-56 원격서버의 MySQL 접속 57-61 Shell 에서 SQL 문 실행 ( DB, Table 생성 ) 62-64 root password 복구방법 65-68 사용자 권한설정. MySQL 에 앞서.

blake
Télécharger la présentation

MySQL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MySQL RENO

  2. 목차 03-05 준비 06-42 설치 43 데몬의 실행과 종료 44-46 사용자 계정 추가 47-48 사용자 계정 삭제 49-50 사용자 계정 비밀번호 변경 51-52 root 계정 비밀번호 변경 53-56 원격서버의 MySQL접속 57-61 Shell에서 SQL문 실행 (DB, Table 생성) 62-64 root password 복구방법 65-68 사용자 권한설정

  3. MySQL에 앞서.. • SQL(Structured Query Language) • 데이터베이스를 조작하기 위한 언어 • 데이터베이스 • 어떤 규칙이나 목적을 기초로 하여 관리되는 데이터의 모음 • DBMS(DataBase Management System) • 여러 데이터베이스를 통합적으로 관리하는 시스템

  4. MySQL • RDBMS • Relational DataBase Management System • 600만의 사용자 • C/C++/C# Java Python php등 언어 지원 • LAMP 플렛폼의 데이터베이스 구성체로 작동 • http://www.mysql.com/

  5. MySQL의 특성 • 빠르다 • 튼튼하고 안정적이다 • 쉽고 빨리 배울 수 있다 • 무료다 • 아무리 큰 데이터도 처리가능하다 • 고사양을 요구하지 않는다 • 보안이 뛰어나다

  6. MySQL 설치에 앞서… • APM(APACHE + PHP + MySQL) • 설치순서 • MySQL -> APACHE -> PHP • wgetgcclibncurses5-dev diff g++등이 필요하므로$apt-get install 대상

  7. MySQL 설치 – by source • 새로 설치한 purelinux서버

  8. MySQL 설치 • wget ftp://ftp.linux.co.kr/mysql/mysql-5.1.32.tar.gz

  9. MySQL 설치 • tar xvfz mysql-5.1.32.tar.gz

  10. MySQL 설치

  11. MySQL 설치

  12. MySQL 설치

  13. MySQL 설치 • ./configure • --prefix=/usr/local/mysql • --localstatedir=/usr/local/mysql/data • --enable-shared • --enable-assembler • --with-thread-safe-client • --with-client-ldflags=-all-static • --with-mysqld-ldflags=-all-static • --with-mysqld-user="mysql" • --with-readline • --without-debug • --without-docs • --without-bench • --with-charset=euckr • configure: error: No curses/termcap library found “reno”라는 DB의 Data ↓ /usr/local/mysql/data/reno euc_kr→ euckr; since v4.1.X

  14. MySQL 설치 • ./configure • --prefix=/usr/local/mysql • --localstatedir=/usr/local/mysql/data • --enable-shared • --enable-assembler • --with-thread-safe-client • --with-client-ldflags=-all-static • --with-mysqld-ldflags=-all-static • --with-mysqld-user="mysql" • --with-readline • --without-debug • --without-docs • --without-bench • --with-charset=euckr • → apt-get install libncurses5-dev

  15. MySQL 설치

  16. MySQL 설치

  17. MySQL 설치

  18. MySQL 설치

  19. MySQL 설치

  20. MySQL 설치 • /usr/local/mysql/libexec/mysqld: Can't read dir of '/etc/mysql/conf.d/'

  21. MySQL 설치

  22. MySQL 설치

  23. MySQL 설치

  24. MySQL 설치

  25. MySQL 설치

  26. MySQL 설치

  27. MySQL 설치

  28. MySQL 설치

  29. MySQL 설치

  30. MySQL 설치

  31. MySQL 설치

  32. MySQL 설치

  33. MySQL 설치 by apt-get • apt-get으로 설치 (for ubuntu)

  34. MySQL 설치

  35. MySQL 설치

  36. MySQL 설치

  37. MySQL 설치

  38. MySQL 설치

  39. MySQL 설치

  40. MySQL 설치

  41. MySQL 설치

  42. MySQL 설치

  43. MySQL 데몬의 실행과 종료 • 소스파일로 설치한 경우 • 실행: /usr/local/mysql/bin/mysqld_safe & • 종료: /usr/local/mysql/bin/mysqladmin -u root -p shutdown • apt-get으로 설치한 경우 • 실행: /etc/init.d/mysqlstart • 종료: /etc/init.d/mysqlstop

  44. MySQL 사용자 계정 추가 • mysql> Use mysql • mysql> GRANT ALL PRIVILEGES ON *.* TO 'id'@'host' IDENTIFIED BY 'password' WITH GRANT OPTION; • mysql> flush privileges;

  45. MySQL 사용자 계정 추가

  46. MySQL 사용자 계정 추가

  47. MySQL 사용자 계정 삭제 • mysql> Use mysql • mysql> delete from user where user = 'id' and host = 'host'; • mysql> flush privileges;

  48. MySQL 사용자 계정 삭제

  49. MySQL 계정 비밀번호 변경 • mysql> Use mysql • mysql> UPDATE user SET password = password('password') WHERE user = 'id'; • mysql> flush privileges;

  50. MySQL 계정 비밀번호 변경

More Related