![MariaDB/MySQL 시작 실패: [ERROR] IP 소켓을 생성할 수 없습니다: 이름 확인에 일시적인 실패](https://rvso.com/image/776675/MariaDB%2FMySQL%20%EC%8B%9C%EC%9E%91%20%EC%8B%A4%ED%8C%A8%3A%20%5BERROR%5D%20IP%20%EC%86%8C%EC%BC%93%EC%9D%84%20%EC%83%9D%EC%84%B1%ED%95%A0%20%EC%88%98%20%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4%3A%20%EC%9D%B4%EB%A6%84%20%ED%99%95%EC%9D%B8%EC%97%90%20%EC%9D%BC%EC%8B%9C%EC%A0%81%EC%9D%B8%20%EC%8B%A4%ED%8C%A8.png)
MySQL에서 MariaDB로 업그레이드한 후 데비안에서 더 이상 데이터베이스를 시작할 수 없습니다. 내가 얻는 오류는 다음과 같습니다.
2022-04-21 9:53:13 0 [Note] mysqld (mysqld 10.3.34-MariaDB-0+deb10u1) starting as process 30342 ...
2022-04-21 9:53:13 0 [Note] InnoDB: Using Linux native AIO
2022-04-21 9:53:13 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2022-04-21 9:53:13 0 [Note] InnoDB: Uses event mutexes
2022-04-21 9:53:13 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-04-21 9:53:13 0 [Note] InnoDB: Number of pools: 1
2022-04-21 9:53:13 0 [Note] InnoDB: Using generic crc32 instructions
2022-04-21 9:53:13 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2022-04-21 9:53:13 0 [Note] InnoDB: Completed initialization of buffer pool
2022-04-21 9:53:13 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2022-04-21 9:53:14 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-04-21 9:53:14 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-04-21 9:53:14 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-04-21 9:53:14 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2022-04-21 9:53:14 0 [Note] InnoDB: Waiting for purge to start
2022-04-21 9:53:14 0 [Note] InnoDB: 10.3.34 started; log sequence number 230364887; transaction id 89889
2022-04-21 9:53:14 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-04-21 9:53:14 0 [Note] InnoDB: Loading buffer pool(s) from /home/mysql/ib_buffer_pool
2022-04-21 9:53:14 0 [Note] InnoDB: Buffer pool(s) load completed at 220421 9:53:14
2022-04-21 9:53:14 0 [ERROR] Can't create IP socket: Temporary failure in name resolution
2022-04-21 9:53:14 0 [ERROR] Aborting
답변1
나는 /etc/mysql/my.cnf에 있었다
bind-address = localhost
localhost를 127.0.0.1 로 변경하면 문제가 해결되었습니다.
bind-address = 127.0.0.1