M1Mac에서 mysql config가 검색되었습니다.OUT FILE을 원활하게 진행할 수 있습니다.
컨디션
Homebrew의 곳
Rosetta에서 터미널 켜기를 설정하지 않았습니다.아무래도 상당히 깊은 곳에 놀러 간 것 같은데, 아마도arm판이 있을 거예요.
누군가가 총결산을 했으니, 내가 공유해 보겠다.
메시지
아무것도 설정하지 않은 mysql로 책상에서 CSV 파일을 만들 때 이런 오류가 발생했습니다
mysql> select * from actor into outfile '~/db/csv/actor.csv' fields terminated by ',' optionally enclosed by '"';
ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
 % find /usr/local/Cellar/mysql -name "my*.cnf"
find: /usr/local/Cellar/mysql: No such file or directory
brew install 했는데 결과는 아래죠 ls/opt/homebrew/Cellar 
bdw-gc		emacs		gnutls		jansson		libevent	libtasn1	m4		nghttp2		[email protected]	protobuf
c-ares		gettext		guile		jemalloc	libffi		libtool		mysql		node		p11-kit		readline
cask		gmp		icu4c		libev		libidn2		libunistring	nettle		nodebrew	pkg-config	unbound
% find /opt/homebrew/Cellar/mysql/8.0.23_1 -name "my*.cnf"
/opt/homebrew/Cellar/mysql/8.0.23_1/.bottle/etc/my.cnf
cnf 파일 편집
/opt/homebrew/etc/my.cnf 복사해 오세요.cp /opt/homebrew/Cellar/mysql/8.0.23_1/.bottle/etc/my.cnf /opt/homebrew/etc/my.cnf
secure-file-priv = ""
확인
OUT FILE 잘 할 수 있을 것 같아요.
mysql> select * from actor_info into outfile '~/db/csv/actor_info.csv' fields terminated by ',' optionally enclosed by '"';
Query OK, 200 rows affected (0.19 sec)
Reference
이 문제에 관하여(M1Mac에서 mysql config가 검색되었습니다.OUT FILE을 원활하게 진행할 수 있습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://zenn.dev/yassh_i/articles/f62aabb8ad8656텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)