java程序通过外网的ip连接数据库
迷茫
迷茫 2017-04-18 10:56:27
0
4
508

怎么连接呢?并且那个数据库服务器防火墙已经关闭且提供了端口号,但是在项目启动到springScurty是就一直等待,这是为啥啊,。有没有认遇到过?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(4)
伊谢尔伦

Just throw an exception and see what the reason is

Peter_Zhu

Post the error so it’s easier to analyze the problem

PHPzhong

Why not install PLSQL or TOAD on the development machine now, test that the network is smooth, and then connect to the Java database? If you use MYCLIPSE, it comes with DATABASE EXPLORER, you can test it directly first

PHPzhong

I don’t know if yours is mysql. Mysql requires some permission processing for your sql access account. Change the previous 127.0.0.1@username to %@username to access the local mysql database through the external network.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!