Thread: Quick help with mysql connecting :P

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Quick help with mysql connecting :P 
    Registered Member
    Join Date
    Aug 2010
    Posts
    151
    Thanks given
    0
    Thanks received
    4
    Rep Power
    0
    Okay so i'm doing the tutorial:

    http://www.rune-server.org/runescape...4items-19.html

    Now I am done with this voting script...

    But when I go into the server.java it says I need to enter "Database address"
    I understand most of the time that means "localhost"
    but the website isn't hosted from that vps so...
    What would I put in there?

    Ps: Website = ChronicPvp.org
    Database = chronicp_vote
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2010
    Posts
    151
    Thanks given
    0
    Thanks received
    4
    Rep Power
    0
    Bump i need this help asap
    Reply With Quote  
     

  3. #3  
    BattleScape
    U Got 0wned's Avatar
    Join Date
    Oct 2011
    Posts
    621
    Thanks given
    184
    Thanks received
    173
    Rep Power
    239
    Nvm, read the person's below.


    Reply With Quote  
     

  4. #4  
    Registered Member Chosenblades's Avatar
    Join Date
    Jan 2012
    Posts
    77
    Thanks given
    18
    Thanks received
    18
    Rep Power
    35
    In the server.java you have to put the direct address to your server. localhost only works when the file is uploaded to your website.

    Edit:
    Quote Originally Posted by U Got 0wned View Post
    Your local host is the website you're hosting on. Well, it should be different than the url to the site. Check your site details if you can.

    Database address is your MySQL Database Name.

    What Host Server are you using?
    It doesn't really matter what host you use unless they block the port/connection.
    Database address is NOT your MySQL database name.

    Go to the page you use to login to CPanel. The URL is an IP. That is your database address I think.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2010
    Posts
    151
    Thanks given
    0
    Thanks received
    4
    Rep Power
    0
    Quote Originally Posted by Chosenblades View Post
    In the server.java you have to put the direct address to your server. localhost only works when the file is uploaded to your website.
    I undestand that.. but what is the format..
    like where it says "DATABASE ADDRESS" would I just put "chronicpvp.org"

    ??
    Reply With Quote  
     

  6. #6  
    BattleScape
    U Got 0wned's Avatar
    Join Date
    Oct 2011
    Posts
    621
    Thanks given
    184
    Thanks received
    173
    Rep Power
    239
    Quote Originally Posted by Chosenblades View Post
    It doesn't really matter what host you use unless they block the port/connection.
    Database address is NOT your MySQL database name.

    Go to the page you use to login to CPanel. The URL is an IP. That is your database address I think.
    I know, that's why I removed my post. I haven't used that in a couple months so I forgot what actually was put into it. But I know it was your webhost url which is in the CPanel as you said.


    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Aug 2010
    Posts
    151
    Thanks given
    0
    Thanks received
    4
    Rep Power
    0
    Testing atm, will post with results
    Reply With Quote  
     

  8. #8  
    Registered Member Chosenblades's Avatar
    Join Date
    Jan 2012
    Posts
    77
    Thanks given
    18
    Thanks received
    18
    Rep Power
    35
    No problem, I was just making sure he didn't do the wrong thing lol
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Aug 2010
    Posts
    151
    Thanks given
    0
    Thanks received
    4
    Rep Power
    0
    I got an error after he did ::check



    I saw in a auto donate tutorial once that it did this:
    "jdbc:mysql://website/database"

    but I'm not sure that applys here.. just asking for suggestions :\
    Putting the IP of my web-server in database-address didn't work.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Aug 2010
    Posts
    151
    Thanks given
    0
    Thanks received
    4
    Rep Power
    0
    help? read the above post
    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. Connecting to Mysql [Shards]
    By Amaranth in forum Help
    Replies: 8
    Last Post: 04-23-2012, 03:12 AM
  2. MYSQL connecting help
    By Sir raxim in forum Help
    Replies: 0
    Last Post: 07-08-2011, 01:45 AM
  3. mysql connecting error
    By minutes in forum Application Development
    Replies: 11
    Last Post: 09-21-2010, 10:29 PM
  4. MySQL not connecting
    By Pilldom in forum Help
    Replies: 0
    Last Post: 12-23-2009, 09:00 PM
  5. error connecting MYSQL
    By joey. in forum Help
    Replies: 6
    Last Post: 01-20-2009, 09:16 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
  •