dongxie5698 2016-03-06 12:31
浏览 36
已采纳

CPanel SQL:需要远程访问,CPanel或WHM中没有授予权限

I'm looking for a fix, but I'd gladly settle for an alternative.

Problem: I am designing an application in Java, It's requirement is to once every night, sync to a server database. More than one laptop will be running this application, and from dynamic IP addresses. I have created and restricted permissions to their SQL accounts from the cPanel interface (not from phpmyadmin, no grant privileges to do so). I need to grant these restricted accounts Wildcard permission to allow the app to do it's work. Neither myself nor the web-host re-seller have access to root or have grant permission. So i cannot allow selected users permissions to remote access.

I Can however, allow all users (which includes the unrestricted users), remote access from Wildcard IP address through the cPanel interface. I can remotely gain access through my Java program this way. However There are security concerns and so I don't want to use this option.

  1. I have very little experience with web-hosting, if i managed to transfer the domain to a different provider, could this alleviate my grant problems?
  2. Is it possible to query custom php and gain access through Local permissions to return database contents? (sorry almost no experience with php).
  3. If i have no Root access, would allowing wildcard on all users be that problematic?

_ _

Any thoughts or suggestions would be greatly appreciated.

P.S. I realise this is very poorly structured and has more than one question. This problem seems to be unique, I haven't been able to find any specific information that fulfilled my needs.

  • 写回答

1条回答 默认 最新

  • dongpu5874 2016-03-15 13:56
    关注

    Personally, I would not open your database to the internet. It's a security risk and also most hosts will block this anyway.

    Your second option is the one I would go with, creating an API which runs on the server, authenticates the clients, and then exposes only the API to the internet (or, since you have control over the clients, maybe even only by VPN!), which then interacts with the database.

    A backup plan would be VPN access to the server; if your client can VPN to the host network then you can allow your clients direct access to the database.

    About your question 3, if you don't have root access you'll still either have permissions to edit users or not; being able to grant users permission (even with a wildcard host) is independent of being the root user, so you may or may not have this level of access and it's impossible to tell based only on your username alone.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)