mysql 8.0.33 my.ini > 자료실

자료실

자료실

mysql 8.0.33 my.ini

페이지 정보

profile_image
작성자 최고관리자
댓글 0 조회 315회 작성일 23-07-13 13:58
작성일 23-07-13 13:58

본문

# C:\AutoSet10\server\mysql-8.0.33\bin\mysqld.exe --defaults-file=C:\AutoSet10\server\mysql-8.0.33\my.ini MYSQL8.0.33

# C:\AutoSet10\server\mysql-8.0.33\bin\mysqld.exe --install MYSQL8.0.33 --defaults-file="C:\AutoSet10\server\mysql-8.0.33\my.ini"

# net start MYSQL8.0.33

# net stop MYSQL8.0.33


[client]

port=3307

default-character-set=utf8


[mysql]

default-character-set=utf8

no-beep


[mysqld]

port=3307

character-set-server=utf8


# PHP에서 MySQL 8 연결 에러 - caching_sha2_password unknown authentication method

# MySQL 이 8로 업그레이드되면서 기본 인증 정책이 mysql_native_password 에서 caching_sha2_password 로 변경되었습니다.

# PHP 에서 MySQL 8 에 연결하면 다음과 같이 caching_sha2_password는 알수 없는 인증 방식이라는 에러가 나면서 로그인을 할 수 없습니다.

# Warning: mysqli_connect(): The server requested authentication method unknown to the client [caching_sha2_password]

# 원인은 MySQL 8 부터는 더 강화된 인증 방식을 도입했는데 PHP 의 MySQL dirver 가 이를 지원하지 않아서이며 2가지 해결 방안이 있습니다.

# PHP 7.4 이상 사용

# PHP 7.4 이상에 포함된 mysqlnd extension 에는 caching_sha2_password 인증 방식을 지원하므로 PHP 7.4 이상으로 업그레이드하면 해결됩니다.

default_authentication_plugin=mysql_native_password


basedir="C:/AutoSet10/server/mysql-8.0.33/"

datadir="C:/AutoSet10/server/mysql-8.0.33/data"

authentication_policy=*,,

default-storage-engine=INNODB

sql-mode="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"

#server-id=32

#secure-file-priv="C:/AutoSet10/server/mysql-8.0.33/Uploads"

#log_error="C:/AutoSet10/server/mysql-8.0.3/data/mysqlerror.log"


max_connections=200

max_connect_errors=10


wait_timeout=90

net_read_timeout=90

net_write_timeout=90

interactive_timeout=300

connect_timeout=90


table_open_cache=4000

temptable_max_ram=1G

tmp_table_size=44M

internal_tmp_mem_storage_engine=TempTable

myisam_max_sort_file_size=2146435072

myisam_sort_buffer_size=79M

key_buffer_size=8M

read_buffer_size=128K

read_rnd_buffer_size=256K

innodb_flush_log_at_trx_commit=1

innodb_log_buffer_size=16M

innodb_buffer_pool_size=128M

innodb_redo_log_capacity=100M

innodb_thread_concurrency=17

innodb_autoextend_increment=64

innodb_buffer_pool_instances=8

innodb_concurrency_tickets=5000

innodb_old_blocks_time=1000

innodb_stats_on_metadata=0

innodb_file_per_table=1

innodb_checksum_algorithm=0

flush_time=0

join_buffer_size=256K

max_allowed_packet=64M

max_connect_errors=100

open_files_limit=8161

sort_buffer_size=256K

binlog_row_event_max_size=256K

sync_source_info=10000

sync_relay_log=10000

sync_relay_log_info=10000


loose_mysqlx_port=33070


[mysqld_safe]

log_warnings = 2

#log_error="C:/AutoSet10/server/mysql-8.0.3/data/Datamysqlerror.log"

추천 0 비추천 0

  • 회사 :
  • 대표 :
  • 주소 :
  • 메일 : admin@mysample.com
  • 사업자 등록번호 :
Copyright © cginjs.com All rights reserved.
notice