![phpstorm mysql phpstorm mysql](https://img2018.cnblogs.com/blog/930512/201903/930512-20190319214715340-1380067977.png)
#Phpstorm mysql driver
The driver has not received any packets from the server. The last packet sent successfully to the server was 0 milliseconds ago. 15:19:48,935 WARN – – Communications link failure 15:19:48,934 WARN – urce.DatabaseConnectionManager – Communications link failure
![phpstorm mysql phpstorm mysql](https://s3-us-west-2.amazonaws.com/wsldpcom/el/images/ubuntu/phpstorm-ubuntu.png)
15:19:48,934 WARN – urce.DatabaseConnectionManager – Connecting to: jdbc:mysql://. 15:19:28,337 INFO – urce.DatabaseConnectionManager – Connecting to: jdbc:mysql://. 15:19:28,337 INFO – urce.DatabaseConnectionManager – Connecting as: will
#Phpstorm mysql code
15:19:28,172 INFO – – Process finished with exit code -1 15:19:28,169 INFO – – Process finished with exit code -1
![phpstorm mysql phpstorm mysql](https://kompy.info/lab-exercise-installing-xampp-and-configuring-it-with-phpstorm/49_html_b7e3a7f.png)
15:19:27,973 INFO – – “C:Program FilesJetBrainsPhpStorm 2018.1.3jre64binjava” 4Stack=true =127.0.0.1 -Duser.timezone=UTC -Dfile.encoding=UTF-8 -classpath “C:Program FilesJetBrainsPhpStorm 2018.1.3libutil.jar C:Program FilesJetBrainsPhpStorm 2018.1.3libtrove4j.jar C:Program FilesJetBrainsPhpStorm 2018.1.3libgroovy-all-2.4.12.jar C:Program FilesJetBrainsPhpStorm 2018.1.3pluginsDatabaseToolslibjdbc-console.jar C:Program FilesJetBrainsPhpStorm 2018.1.3pluginsDatabaseToolslibdekaf-single-2.0.0.353.jar C:Userswill.PhpStorm2018.1configjdbc-driversMySQL ConnectorJ5.1.46mysql-connector-java-5.1.46.jar C:Userswill.PhpStorm2018.1configjdbc-driversMySQL ConnectorJ5.1.46mysql-connector-license.txt” .RemoteJdbcServer 15:19:27,657 INFO – – Process finished with exit code -1 Thank you for your great help in pointing out Maze. The use of PhpStorm remote connection has been a failure, and attempts to retrieve various schemes have been fruitless. You can then address the specifically mapped port on that container with localhost: from the host machine.A Linux server (Ubuntu 18.04) was built in Linode. Or from a container on a bridge network, map the port to the host like suggested in the solution above.Connect the container to the host network.In order to access the container from the host, you need to either: And if you have created a new network, without specifying the type - it will also default to the bridge driver. If you have not specified any network for your mysql container, then it is connected to the default bridge network. The container name of a docker container, is not a DNS name that the docker host can resolve. The reason that you are not able to connect, is that the host name network_mysql that you specify in the connection settings, does not resolve to any host that your machines knows of. If you are starting it with docker run, then you can acomplish the same thing with: docker run -p 3306:3306 -name network_mysql -network="tmp_wex_net" -d mysqlĪnd then use localhost in the hostname of your connection settings in PHPStorm. In order to be able to access the container from the host, you need to use the ports section of your compose definition for this container: serivces: I appears that you are using a docker-compose.yml definition for the stack. This means that the container is not accesible from the host, by it's container name. The container network_mysql is attached to a bridge type network called tmp_wex_net. If you did, you would see this from the docker ps command. I notice that you are not mapping the mysql container port out.