본문 바로가기

MySQL3

CentOS 에 MySQL 연동하기 VM Ware로 CentOS 시작 후 putty로 작업 시작 1. wget 설치 yum install wget 2. MySQL 다운로드 wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm sudo rpm -ivh mysql57-community-release-el7-11.noarch.rpm 3. MySQL 설치 sudo rpm -ivh mysql57-community-release-el7-11.noarch.rpm 4. MySQL 서버 설치 sudo yum install mysql-server 5. 서비스 시작 sudo systemctl start mysqld ⚠️ 오류 발생 → yum install -y mariadb-se.. 2022. 4. 14.
[PHP] 트랜잭션 처리 DB에서 트랜잭션 처리 - 데이터 무결성 유지의 핵심 ※ transaction은 동일 커넥션에서만 유효 함 데이터 제어어(DCL: Data Control Language) 1. ROLLBACK - 원래의 상태로 복구하기 위한 명령 - rollback 해야될 시점 2. COMMIT - 작업 결과를 물리적 디스크로 저장하고, 조작 작업이 정상적으로 완료되었음을 관리자에게 알려줌 - commit 해야 될 시점: db에 완전히 update 했을 때 (다 끝나고 나서) PHP mysqli commit() Function 2021. 2. 18.
[APM] PHP와 Mysql 연동하기 0. MySQL Workbench 설치 https://hello-bryan.tistory.com/251 Windows MySQL 5 .x 설치 Windows MySQL 설치 downloads.mysql.com/archives/installer/ MySQL :: Download MySQL Installer (Archived Versions) Please note that these are old versions. New releases will have recent bug fixes and.. hello-bryan.tistory.com 1. php.ini 수정 php 경로에 php.ini를 텍스트 에디터로 열어서 ;extension=mysqli → extension=mysqli 로 수정 ( ; 빼기) 저장.. 2020. 12. 10.