与Phpstorm IDE的Mysql连接 [英] Mysql Connection with Phpstorm IDE

查看:325
本文介绍了与Phpstorm IDE的Mysql连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于那些熟悉Phpstorm的人来说,我正在使用2.0.1版编写此问题.

For those of you who are familiar with Phpstorm I am using version 2.0.1 as writing this question.

我在使用MAMP的Mac上.我试图将数据库与Phpstorm连接起来,但这有点令人困惑.

I am on a Mac using MAMP. I tried to connect my database with Phpstorm but it is a bit confusing.

我去了工具-> 数据源 当我按 + 添加时 并选择db数据源 它希望我输入数据库的"jdbc://" URL.

I went to tools -> data sources when I press + to add and choose db datasource it wants me to enter a "jdbc://" URL to the database.

直到现在我一直在使用/Applications/MAMP/tmp/mysql/mysql.sock.

The whole time until now I've been using /Applications/MAMP/tmp/mysql/mysql.sock.

如何使数据库与此套接字连接?该软件很棒,但有时会令人困惑.

How do I get the db to connect with this socket thing? The software is amazing but confusing at times.

推荐答案

好吧,您可以使用 JDBC连接器.我过去曾使用过Eclipse.不熟悉PHP风暴.我不确定MAMP是否附带它,因此您可能必须下载并安装它.

Well you could just use the JDBC connector. I have used with Eclipse in the past. Not familiar with PHP storm. Im not sure if it comes with MAMP so you may have to download and install it.

这篇关于与Phpstorm IDE的Mysql连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆