无法连接到PhpStorm中的数据库

时间:2020-07-24 12:19:31

标签: database phpstorm

这是我尝试连接到数据库的方式:

enter image description here

这是我对DB的了解:

define( 'DB_NAME', 'wordpress' );
define( 'DB_USER', 'wordpress' );
define( 'DB_PASSWORD', 'wordpress' );
define( 'DB_HOST', 'database' );

按测试连接时出现此错误 [08000][-1] Could not connect to address=(host=database)(port=3306)(type=master) : Socket fail to connect to host:database, port:3306. database java.net.UnknownHostException: database.

有什么建议吗?

0 个答案:

没有答案