본문 바로가기

MySQL

[MySQL] dump without transaction 1. DDL onlymysqldump -uneed4spd -p --skip-add-locks --single-transaction --skip-lock-tables -d DBNAME > /home/need4spd/test.sql -> -D가 no data 2. no create infomysqldump -uneed4spd -p --skip-add-locks --single-transaction --skip-lock-tables --no-create-info DBNAME > /home/need4spd/test.sql 더보기
[MySql] 쿼리 로그 남기기 from : http://stackoverflow.com/questions/6479107/how-to-enable-mysql-query-logHere is a summary:If you don't want or cannot restart the MySQL server you can proceed like this on your running server:Create your log tables (see answer)Enable Query logging on the database (Note that the string 'table' should be put literally and not substituted by any table name. Thanks Nicholas Pickering)SET glob.. 더보기
윈도우7 MySQL 설치 1. 다운로드2. install...중간에 데이터파일 위치 변경하는게 있을줄 알았는데 없다.. 3. Default로 숨겨진 폴더인 C:\ProgramData\MySQL\MySQL Server 5.6\data에 데이터 디렉토리가 생성되며C:\ProgramData\MySQL\MySQL Server 5.6\my.ini가 설정파일로 사용된다. 4. 이 설정파일을 수정하여 데이터 파일 디렉토리 변경datadir="E:/MySQL56/data/" 5. C:\ProgramData\MySQL\MySQL Server 5.6\data를 E:/MySQL56/data/로 Copy. 더보기
[link] installing mysql mac osx http://databases.about.com/od/shareware/ht/Installing-Mysql-On-Mac-Os-X-10-7-Lion.htm 더보기
jdbc 연동방법 드라이버 다운로드 http://dev.mysql.com/downloads/connector/j/3.1.html Class.forName("org.gjt.mm.mysql.Driver"); Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/[dbname]" , [id], [password]); 더보기
간단한 명령어 mysql5를 다운받아 (윈도우용) 설치 하면 기본적으로 root 계정과 innoDB를 사용하도록 설정이 됨 mysql gui tool을 사용하면 마치 toad처럼 윈도우 환경에서 편하게 mysql을 제어 할 수 있음 cmd에서 간단한 명령어 사용하면 net start mysql net stop mysql mysql -u root -p root password : **** sql> mysql -u wiki -p wiki < D:\JAVA\download\wiki.dump_20080618\wiki.dump export받은 dump 파일을 import 하는 명령어 만일 이 상태에서 ERROR 2006 (HY000) at line 999: MySQL server has gone away 이런 error가 발생.. 더보기
[MySQL] 메뉴얼.. http://www.mysqlkorea.co.kr/sub.html?mcode=develop&scode=01&lang=k 더보기