티스토리 뷰

IT 관련/데이터베이스

MySQL 설치 5.7

서관실 2017. 2. 7. 09:52

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 = 2M
sql_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=utf8
collation-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.17
datadir = /usr/local/MySQL 5.7.17/data
port = 3306
# server_id =
#
#default-character-set=utf-8
lc-messages-dir =/usr/local/MySQL 5.7.17/share
lc-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 = 2M
sql_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 mysql
mysql> update user set authentication_string=password('root 비밀번호') where user='root';
mysql> quit;
#중지 및 정상시작 & 접속
$ mysqladmin -uroot shutdown
$ mysqld
$ mysql -uroot -p
Enter 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
«   2024/05   »
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 29 30 31
글 보관함