dpnof28482 2016-10-30 13:50
浏览 50
已采纳

是否可以通过知道PHP中的用户名和密码(仅限)来破解我的数据库[关闭]

Is it possible for someone to hack a MySQL database by knowing (only) the username and the password for my database.

There is no phpMyAdmin to login from it and there is no way to do any SQL injection in the website (because I'm using Laravel).

  • 写回答

1条回答 默认 最新

  • dongqie8661 2016-10-30 16:24
    关注

    Your question is quite similar to "Is it possible to break into my house with my door key?"

    It depends on few things:

    1. Which IP is your MySQL listening to? In your MySQL Config File bind-address, find the value.
    2. For that specific username, did you enabled remote access for that user in MySQL?
    3. Any Firewall rules to restrict remote MySQL connections?

    By the way, using Laravel or any other frameworks does NOT guarantee anything on protecting from SQL injection. People can easily write a SQL injection vulnerable web page under any framework if they want.

    You should:

    • Implement your database related code properly and follow the instruction in the documentation.
    • Set your MySQL users and their privilege in the right way.
    • Do not expose your database to the public is recommended.

    Last thing for your update, if you want to share your database with others. Not a big problem if you set the privilege correctly.

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

报告相同问题?

悬赏问题

  • ¥50 分布式追踪trace异常问题
  • ¥15 人在外地出差,速帮一点点
  • ¥15 如何使用canvas在图片上进行如下的标注,以下代码不起作用,如何修改
  • ¥15 Windows 系统cmd后提示“加载用户设置时遇到错误”
  • ¥50 vue router 动态路由问题
  • ¥15 关于#.net#的问题:End Function
  • ¥15 无法import pycausal
  • ¥15 VS2022创建MVC framework提示:预安装的程序包具有对缺少的注册表值的引用
  • ¥15 weditor无法连接模拟器Local server not started, start with?
  • ¥20 6-3 String类定义