Phpstorm Database : java.sql.SQLException: Communications link failure

前端 未结 3 929
渐次进展
渐次进展 2021-01-19 01:43

I\'m working on a website using JetBrains PHPStorm. I created a database with default settings, when I try to test the connection or connect to the database, this error pops

3条回答
  •  清酒与你
    2021-01-19 02:11

    If you update your port number this issue will be fixed. So I thought it would be helpful if you know the step to find out the port number in which your mysql is installed.

    In your mysql client type following sql query:

    SHOW GLOBAL VARIABLES LIKE 'PORT';
    

    OR use this stackoverflow link

    How to test which port MySQL is running on and whether it can be connected to?

提交回复
热议问题