PhpStorm + MySQL Setup
NickName:James W Ask DateTime:2016-05-20T05:34:54

PhpStorm + MySQL Setup

I have been trying to set up a new MySQL connection in PhpStorm (2016.1) for days now and cannot figure it out.

I am on a Mac OS X 10.11.4 and I have a Home Server (Ubuntu 14.04) and MySQL (5.5). I have a Firewall setup on the Server and have allowed all local connections to pass through (verified by connecting to MySQL on another computer).

I went into PhpStorm and added a new Database, entered the IP address (even tried host name) of remote (Home Server), and all credentials. When I hit "Test Connection" I get an error of

"Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection Refused"

I have "googled" about this error and one suggestion is to uncomment the localhost line in your hosts file (it was never commented out). I then though, maybe I need to have MySQL installed on my Mac, so I installed the current MySQL. Still get the same error. I even went under the SSH tab (PhpStorm) under the database setup and tried to set up a SSH Tunnel, still the same error.

Any suggestions?

PhpStorm Screen Shot SSH Tab From PhpStorm

Copyright Notice:Content Author:「James W」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/37334413/phpstorm-mysql-setup

More about “PhpStorm + MySQL Setup” related questions

How to open a PhpStorm project without PhpStorm

I had to make a School Project and decided to make one with PhpStorm and Laravel. My teacher doesn't have PhpStorm and told me to find a way so he could open it. Is there any possibility to open a

Show Detail

Uninstall phpstorm 7.1 on ubuntu to install phpstorm 8

title says it all i want to uninstall phpstorm so i can upgrade but i cant figure out how. I have tired doing sudo apt-get remove phpstorm and also with the version number but it doesn't work. I h...

Show Detail

Uninstall PhpStorm on Windows

I read the comments here about uninstalling PhpStorm on Ubuntu and it implies uninstalling PhpStorm is actually a deleting process. I installed the JetBrains ToolKit and accidentally installed Ph...

Show Detail

Configuring PHPStorm with Vagrant

This is JetBrain Documentation states that Vagrant installation will create these shell files ( vagrant.bat / vagrant.sh ), which will be linked to by PHPStorm. However these files do not exist in...

Show Detail

PhpStorm not working with Xdebug 3: configured but PhpStorm not detecting Xdebug

I have installed PhpStorm 2020.3.1 and installed latest Xdebug, here is my phpinfo output: and my php.ini is: [xdebug] xdebug.start_with_request=yes xdebug.discover_client_host=true xdebug.

Show Detail

Microsoft Edge in PhpStorm

I use PhpStorm as my editor. I want to be able to add Microsoft Edge browser to PhpStorm but just can't get it to work. As anyone been able to setup Microsoft Edge to work in PhpStorm?

Show Detail

Phpstorm TO GLOBAL path

I downloaded Phpstorm (Linux version), and I can run the program by executing phpstorm.sh file in /bin. But how can I run this from the terminal with the command phpstorm?

Show Detail

Select to end of line in phpstorm

I want to select the text from current position to end of the line with keyboard shortcuts in phpstorm (mac OS). What is the shortcut? Also I want to select the text from current position to next ...

Show Detail

PhpStorm HTTP client

PhpStorm has built-in HTTP Client (https://www.jetbrains.com/help/phpstorm/http-client-in-product-code-editor.html), with JS support, which allows for writing tests. This is really handy, but would...

Show Detail

Prophecy autocomplete in PhpStorm

I use PhpStorm and Prophecy in PHPUnit tests. I used plugin PHPUnit Autocomplete Assistant and it worked well until I updated to PhpStorm 2016.1.1. Plugin is disabled and this message shows on Php...

Show Detail