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

WBOY
Release: 2016-06-06 20:27:55
Original
1229 people have browsed it

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

回复内容:

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

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

先在terminal中连一下试试- -

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

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template