Thread: [Pi] Connecting my server to my website

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [Pi] Connecting my server to my website 
    Registered Member
    Join Date
    Oct 2012
    Posts
    73
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    hey,


    I cannot get my server to connect to mysql database. For highscores etc. Please help me
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    May 2013
    Age
    26
    Posts
    683
    Thanks given
    138
    Thanks received
    115
    Rep Power
    104
    Help can't be given if you don't show what's wrong.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2012
    Posts
    73
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by BertFX View Post
    Help can't be given if you don't show what's wrong.
    Okay well im trying to make a highscores on my website but i get the error "communication failer"on my server
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Feb 2013
    Posts
    10
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    It will be your mySQL config file not written properly...

    This is the usual config file i use, just change username to your DB username, the password to yours and the hostname to the host that it is on.. hope it helps.

    <?php
    $username = "root";
    $password = "";
    $hostname = "localhost";
    $dbhandle = mysql_connect($hostname, $username, $password)
    or die("Unable to connect to MySQL");
    echo "Connected to MySQL";
    ?>
    Ps; could you show how you are getting your data for your highscores, that could also be another problem.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2012
    Posts
    73
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by tylerb View Post
    It will be your mySQL config file not written properly...

    This is the usual config file i use, just change username to your DB username, the password to yours and the hostname to the host that it is on.. hope it helps.



    Ps; could you show how you are getting your data for your highscores, that could also be another problem.
    I dont see how php code is put into java but im using the files from 317 highscores tut.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Quote Originally Posted by Dark_Reflex View Post
    hey,


    I cannot get my server to connect to mysql database. For highscores etc. Please help me
    are you using a free webhost.
    Reply With Quote  
     

  7. #7  
    Web Developer
    Leon's Avatar
    Join Date
    Jan 2012
    Posts
    392
    Thanks given
    64
    Thanks received
    123
    Rep Power
    38
    Quote Originally Posted by Dark_Reflex View Post
    I dont see how php code is put into java but im using the files from 317 highscores tut.
    You don't. You use mysql to connect to the database from the server and mysql to connect to the database on the site.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Oct 2012
    Posts
    73
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Karma_K View Post
    are you using a free webhost.
    No. I have payed for my domain and webhosting.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Oct 2012
    Posts
    73
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Mr. Unicorn View Post
    You don't. You use mysql to connect to the database from the server and mysql to connect to the database on the site.
    Can you explain this a bit more please? Mysql to connect to db? Like the mysql on my webhosting or on the rsps server side?
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Feb 2013
    Posts
    10
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Dark_Reflex View Post
    I dont see how php code is put into java but im using the files from 317 highscores tut.
    Well take a look at this and you can find out how to PHP: Java - Manual
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 3
    Last Post: 01-13-2013, 10:36 AM
  2. how do i connect my client to my server
    By darkerjakey in forum Tutorials
    Replies: 6
    Last Post: 03-29-2009, 12:20 PM
  3. Adding server to my laptop -.-
    By Ash in forum Help
    Replies: 6
    Last Post: 01-31-2009, 04:34 PM
  4. Connecting A Client To My Server
    By Wicksyere in forum Requests
    Replies: 0
    Last Post: 12-11-2008, 07:35 PM
  5. how do i get my server to run
    By bosley in forum Tutorials
    Replies: 10
    Last Post: 04-29-2008, 11:45 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •