티스토리 뷰
mysql 5.6은 지금처럼 설치하면 잘 된다.
근데 5.7 파일구성을 보면 조금더 손이 간다.
mysql-default.ini 파일도 내용이 허하다~
# For advice on how to change settings please see# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the# *** default location during install, and will be replaced if you# *** upgrade to a newer version of MySQL.[mysqld]# Remove leading # and set to the amount of RAM for the most important data# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.# innodb_buffer_pool_size = 128M# Remove leading # to turn on a very important data integrity option: logging# changes to the binary log between backups.# log_bin# These are commonly set, remove the # and set as required.# basedir = .....# datadir = .....# port = .....# server_id = .....# Remove leading # to set options mainly useful for reporting servers.# The server defaults are faster for transactions and fast SELECTs.# Adjust sizes as needed, experiment to find the optimal values.# join_buffer_size = 128M# sort_buffer_size = 2M# read_rnd_buffer_size = 2Msql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
# 5.6의 my.ini를 참고하여 최소한의 필요정보만 줬다.
# For advice on how to change settings please see# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the# *** default location during install, and will be replaced if you# *** upgrade to a newer version of MySQL.[mysqldump]default-character-set=utf8[mysqld]character-set-server=utf8collation-server=utf8_general_ci# Remove leading # and set to the amount of RAM for the most important data# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.# innodb_buffer_pool_size = 128M# Remove leading # to turn on a very important data integrity option: logging# changes to the binary log between backups.# log_bin# These are commonly set, remove the # and set as required.basedir = /usr/local/MySQL 5.7.17datadir = /usr/local/MySQL 5.7.17/dataport = 3306# server_id =##default-character-set=utf-8lc-messages-dir =/usr/local/MySQL 5.7.17/sharelc-messages=en_US# Remove leading # to set options mainly useful for reporting servers.# The server defaults are faster for transactions and fast SELECTs.# Adjust sizes as needed, experiment to find the optimal values.# join_buffer_size = 128M# sort_buffer_size = 2M# read_rnd_buffer_size = 2Msql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_IN_DATE
#초기화#/mysql/data 폴더와 기본파일이 생성된다.$ mysqld --initialize# 비밀번호 초기화 임시구동$ mysqld --skip-grant-tables#비밀번호 변경$ mysql -uroot mysqlmysql> update user set authentication_string=password('root 비밀번호') where user='root';mysql> quit;#중지 및 정상시작 & 접속$ mysqladmin -uroot shutdown$ mysqld$ mysql -uroot -pEnter password: root비밀번호mysql> set password = password('root 비밀번호');
'IT 관련 > 데이터베이스' 카테고리의 다른 글
MySQL login-path 사용하기 (0) | 2016.08.29 |
---|---|
GORUP_CONCAT (0) | 2010.12.03 |
[Mysql] Cast (2) | 2010.08.18 |
MYSQL 함수 (0) | 2010.01.01 |
MySQL 내장함수 (0) | 2009.03.15 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- react
- java
- 마산
- 횟집
- 아이폰
- 인터넷 속도
- 원어데이
- Linux
- 김해
- 창원
- 윈도우7
- 짬뽕
- 파이어폭스
- 버그가많아
- 플스
- Firefox
- ubuntu
- 일식
- Mac
- window7
- html tag
- code
- 먹는게 남는다
- MySQL
- 그리스몽키
- 불여우
- 지름신
- Flash
- 진례
- SQL
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함