Heim  >  Artikel  >  Backend-Entwicklung  >  phpstrom怎么配置链接mysql,我只能链接上本地的,服务器的链接不上

phpstrom怎么配置链接mysql,我只能链接上本地的,服务器的链接不上

WBOY
WBOYOriginal
2016-06-06 20:27:551193Durchsuche

我现在一直用phpstrom,想用里面自带的mysql工具,怎么配置才可以连上服务器的数据库啊,我现在只能链接到本地的数据库,jdbc的driver我已经下载好了

回复内容:

我现在一直用phpstrom,想用里面自带的mysql工具,怎么配置才可以连上服务器的数据库啊,我现在只能链接到本地的数据库,jdbc的driver我已经下载好了

先试一下远程服务器是否支持远程链接,然后检查用于登陆的用户host是否仅是localhost,而没有允许远程host。

先在terminal中连一下试试- -

$ mysql -h youdomain.com -u root -p

把localhost换成数据库地址就可以了啊

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn