SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    can't connect to mysql server

    Hello all,
    I am using xampp(yes I am a newbie) And Notebook++ as a coder.Trouble is when try and establish contact with the server on local host It keeps defaulting to Localhost/xampp opening page.

    I have tried using the simple method of mysql_connect and the more complicated method of using variables,but I dont think it's a problem with the code.Up until now I have stored all of my files in xwampp hdocs document,then to run it in the browser just pointer local host and the file name.
    but is this different in some way when it comes to opening a database,should I be pointing at sql files somewhere.
    Any help appreciated.

    regards
    Jim

  2. #2
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,438
    Mentioned
    82 Post(s)
    Tagged
    3 Thread(s)
    I am using xampp and Notebook++.
    I do as well and there is no problem with that!

    I am not sure what your problem is:
    You can view the database using phpmyadmin via http://localhost/phpmyadmin
    If you code a webpage and have the connection to the database etc as normal you should just be able to visit the page in the browser as you said and it should connect.

    I assume you have started MySQL with the XAMPP control panel?

  3. #3
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    73 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by inatree View Post
    .Trouble is when try and establish contact with the server on local host It keeps defaulting to Localhost/xampp opening page.
    What page are you modifying/trying to access, and what URL are you putting into your browser?
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.


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
  •