mysql mac m1 报错处理

dyld[14259]: Library not loaded: /opt/homebrew/opt/protobuf@29/lib/libprotobuf-lite.29.4.0.dylib
  Referenced from: <5EC44067-ECA9-386B-BDCE-0482423EC206> /opt/homebrew/Cellar/mysql/9.3.0/bin/mysqld
  Reason: tried: '/opt/homebrew/opt/protobuf@29/lib/libprotobuf-lite.29.4.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/protobuf@29/lib/libprotobuf-lite.29.4.0.dylib' (no such file), '/opt/homebrew/opt/protobuf@29/lib/libprotobuf-lite.29.4.0.dylib' (no such file), '/opt/homebrew/Cellar/protobuf@29/29.5_1/lib/libprotobuf-lite.29.4.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/protobuf@29/29.5_1/lib/libprotobuf-lite.29.4.0.dylib' (no such file), '/opt/homebrew/Cellar/protobuf@29/29.5_1/lib/libprotobuf-lite.29.4.0.dylib' (no such file)

重新安装 MySQL 以确保依赖正确关联:

brew reinstall mysql

完成后重新启动 MySQL 服务:

brew services restart mysql
posted @ 2025-10-20 10:48  Lafite-1820  阅读(4)  评论(0)    收藏  举报