Navicat連接了Oracle數據庫
測試連接失敗,提示:hostname required
解決:
在終端下查看本機: hostname
➜ ~ hostname
skdeMacBook-Pro.local
➜ ~ cat /etc/hosts
➜ ~ cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
發現hostname不一致,執行如下命令
➜ ~ sudo scutil --set HostName localhost
再次連接,問題解決