Results 1 to 3 of 3

Thread: Is it possible to connect to mysql database through a php file

  1. #1
    Join Date
    May 2012
    Posts
    106

    Is it possible to connect to mysql database through a php file

    I am trying to find out some options through which I can connect to a mysql database through a php file. And I want to know how to do that .I am actually working a project where a mysql database can get vulnerable easily. If I do not provide anyone access to the database then still it can be accessible or not. I am not just talking about the regular web environment where many people manage their website through cpanel. There are few bunch of users who will be having ftp access.

  2. #2
    Join Date
    Apr 2009
    Posts
    569

    Re: Is it possible to connect to mysql database through a php file

    Whatever you try, it is not possible without having the database username and password. Even if there is some php script which can connect you to the database, you will need the login details. Or else it is not going to work. IT is very hard to directly enter the database and it can be done by some expert only. Hosting providers take things very seriously. They do not just allow multiple attempts to database login. There are lots of restrictions.

  3. #3
    Join Date
    May 2009
    Posts
    511

    Re: Is it possible to connect to mysql database through a php file

    Through ftp someone can mess with your site but not with the database. Unless you had kept the ftp login, cpanel login and database login as one and same. It is right that to connect to the database you will need the login details. Or else it is not going to work. It is very complicated from all angle. Also the persons must know the database name also. It is good avoid offering multiple access to your web server if you want to keep things safe.

Similar Threads

  1. How to connect PHP to mySQL Database
    By Nathen in forum Tips & Tweaks
    Replies: 2
    Last Post: 17-07-2011, 03:49 AM
  2. MySQL database log file maintenance
    By little-Jacqueline in forum Software Development
    Replies: 4
    Last Post: 27-02-2010, 04:12 AM
  3. How to Connect to MySQL database on my website?
    By Zombi in forum Software Development
    Replies: 3
    Last Post: 24-09-2009, 01:23 PM
  4. How to convert .db file to MySQL database
    By KALIDA in forum Software Development
    Replies: 3
    Last Post: 07-09-2009, 04:49 PM
  5. How to Connect MySQL database from PHP
    By Booth in forum Software Development
    Replies: 3
    Last Post: 21-01-2009, 09:12 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,728,084,725.22725 seconds with 17 queries