【发布时间】:2017-11-15 19:17:16
【问题描述】:
我在 docker 容器中运行 MySQL 8.0 以进行本地开发。 Web 容器可以很好地连接到 mysql。当尝试从 Sequel Pro 访问我的数据库时,容器给了我一个错误,
db_1 | mbind: Operation not permitted
需要注意的是,与 MySQL Workbench 连接不会导致容器抛出该错误,但它也不会完全连接。它确实显示了数据库和表,但无法查询表。我在下面包含了来自 Sequel Pro 的错误。
NSInvalidArgumentException
-[_NSInlineData isEqualToString:]: unrecognized selector sent to instance 0x608000039740
(
0 CoreFoundation 0x00007fff3cae52fb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fff63452c76 objc_exception_throw + 48
2 CoreFoundation 0x00007fff3cb7dda4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x00007fff3ca5b670 ___forwarding___ + 1456
4 CoreFoundation 0x00007fff3ca5b038 _CF_forwarding_prep_0 + 120
5 Sequel Pro 0x000000010002fce3 -[SPDatabaseDocument setDatabases:] + 783
6 Sequel Pro 0x000000010002f2a9 -[SPDatabaseDocument setConnection:] + 610
7 Foundation 0x00007fff3eb56985 __NSThreadPerformPerform + 334
8 CoreFoundation 0x00007fff3ca7d821 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
9 CoreFoundation 0x00007fff3cb374cc __CFRunLoopDoSource0 + 108
10 CoreFoundation 0x00007fff3ca602c0 __CFRunLoopDoSources0 + 208
11 CoreFoundation 0x00007fff3ca5f73d __CFRunLoopRun + 1293
12 CoreFoundation 0x00007fff3ca5efa3 CFRunLoopRunSpecific + 483
13 HIToolbox 0x00007fff3bd7e866 RunCurrentEventLoopInMode + 286
14 HIToolbox 0x00007fff3bd7e5d6 ReceiveNextEventCommon + 613
15 HIToolbox 0x00007fff3bd7e354 _BlockUntilNextEventMatchingListInModeWithFilter + 64
16 AppKit 0x00007fff3a07ba23 _DPSNextEvent + 2085
17 AppKit 0x00007fff3a810e6c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
18 AppKit 0x00007fff3a070831 -[NSApplication run] + 764
19 AppKit 0x00007fff3a03f9d2 NSApplicationMain + 804
20 Sequel Pro 0x0000000100002454 start + 52
)
【问题讨论】:
-
你想在 sqlpro 中运行什么查询?你能提供一些关于数据库架构的信息吗?
-
连接到容器时出现该错误。不是来自我正在运行的任何查询,也不是来自连接到特定数据库。
-
如果您认为我的答案解决了您的问题或对找到您的解决方案最有帮助,请@DylanButh Werlich 接受或投票给我的答案。谢谢你。干杯!
标签: mysql docker docker-compose