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
再次连接,问题解决