SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Dec 2004
    Location
    In front of my computer
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy mySQL>> permissions not working on localhost?

    Greetings,

    I am testing on a local machine and am having problems with only ONE query that I try to make and am wondering if there is a fundamental issue, maybe persmissions, I am simply not understanding. This EXACT same code, files,etc. work perfectly on my remote server.

    I make my DB query with an include file. The first php script I run queries the DB no problem, but the second simply doesn't. I know that the username, password, localhost etc. is configured correctly, becasue I can log into the DB directly with no problem and because the first query works with no problem. Is there ANYTHING that I am missing? I take the exact same files and dump it onto another server (with a different host name) and there are no problems?! Please help, this issue has been killing me for some time now and I can't even get a testing environment set up to work on.

    I am almost possitive it is not the php code but something to do with permissions which I simply don't understand. If there is anyone that could at least explain to me how permissions work on unix (macOSX) and with mySQL, like, when I make a query is it me (root user) or mysql? If anyone could just help me understand the basics I would REALLY apreciate it so I can try to solve this problem. Thanks.

    -i

    mySQL4.0.23
    php4.3.10

  2. #2
    SitePoint Guru asterix's Avatar
    Join Date
    Jun 2003
    Posts
    847
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please state what the error message is.
    Please use the explain command to print out both the query which worked and the one which didn't.

    Pls post these details...


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
  •