티스토리 뷰

워크벤치로 내부네트워크로 연결 시도하는데 오류가 나길래 검색해보니 bind_address 이값을 0.0.0.0으로 변경해야한다함


대부분의 글에 파일 위치는 /etc/my.cnf 인데 이경로에 파일이 없음..


/etc/mysql/my.cnf 에 파일이 있으나 아래 내용처럼 되어있음.



  1 # The MariaDB configuration file

  2 #

  3 # The MariaDB/MySQL tools read configuration files in the following order:

  4 # 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,

  5 # 2. "/etc/mysql/conf.d/*.cnf" to set global options.

  6 # 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.

  7 # 4. "~/.my.cnf" to set user-specific options.

  8 #

  9 # If the same option is defined multiple times, the last one will apply.

 10 #

 11 # One can use all long options that the program supports.

 12 # Run program with --help to get a list of available options and with

 13 # --print-defaults to see which it would actually understand and use.

 14

 15 #

 16 # This group is read both both by the client and the server

 17 # use it for options that affect everything

 18 #

 19 [client-server]

 20

 21 # Import all .cnf files from configuration directory

 22 !includedir /etc/mysql/conf.d/

 23 !includedir /etc/mysql/mariadb.conf.d/



22행 23행 보면 폴더가 인클루드 되어있으니 그쪽으로 가서 확인을 해야하는데 실제 bind_address값이 있는 위치는 


/etc/mysql/mariadb.conf.d/50-server.cnf



위 경로파일을 열면 bind_address설정이 보임..


수정 후에 mysql 재시작으로 적용이 안됨 재부팅 후 정상 연결 확인

댓글