gna*_*ell 20 mysql connection phpstorm vagrant
我无法使用PhpStorm在流浪汉机器中创建与MySQL数据库的连接.
我的设置是:
数据库选项卡:
- 主机:127.0.0.1
- 端口:3306
- 用户:root
- 密码:root_passsword
SSH/SSL选项卡:
- 代理主机:192.168.56.102
- 端口:22
- 代理用户:vagrant
- 代理密码:vagrant
有人能帮我吗?谢谢
ous*_*aka 27
在SSH/SSL选项卡中,选择Auth type Key pair
,然后将路径复制到私钥文件中定义IdentityFile
.例如C:/virtualM/deb56/puphpet/files/dot/ssh/id_rsa
$vagrant up
$vagrant ssh-config
Host local
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile "C:/virtualM/deb56/puphpet/files/dot/ssh/id_rsa"
IdentityFile "C:/Users/User/.vagrant.d/insecure_private_key"
IdentitiesOnly yes
LogLevel FATAL
Run Code Online (Sandbox Code Playgroud)
Mil*_*anG 12
这是一篇关于这个主题的非常好的文章:
那是:
cd ~/path/to/your/project
vagrant ssh-config
从终端运行命令或者只是访问我在顶部发布的URL.
归档时间: |
|
查看次数: |
14114 次 |
最近记录: |