Thread: [317] Mysql issue

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [317] Mysql issue 
    Registered Member
    Join Date
    Feb 2014
    Posts
    52
    Thanks given
    17
    Thanks received
    6
    Rep Power
    11
    I have my loginserver connected and server just sits at connecting to database, will never change, any ideas?

    Spoiler for Image:


    Thanks in advance.
    Reply With Quote  
     

  2. #2  
    Registered Member
    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,697
    Thanks given
    170
    Thanks received
    285
    Discord
    Arch337#1337
    Rep Power
    590
    Add a message that it have connected if you are unsure if connected or not.
    Cause based on the image, there is no mysql issue / error.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2014
    Posts
    52
    Thanks given
    17
    Thanks received
    6
    Rep Power
    11
    Here it is, and yeh there's no errors, that's why im surprised.

    Spoiler for image:


    Spoiler for Code:
    public void initialise(String alias) {
    System.out.println("Connecting to " + alias + " database..");
    for (DatabaseConnection poolConnection : pool) {
    if (!poolConnection.connect())
    continue;
    //poolConnection.setState(State.IDLE);
    System.out.println("Successfully connected to " + alias
    + " database!");
    }
    }
    Reply With Quote  
     

  4. #4  
    Registered Member
    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,697
    Thanks given
    170
    Thanks received
    285
    Discord
    Arch337#1337
    Rep Power
    590
    Quote Originally Posted by Ghoul_ View Post
    Here it is, and yeh there's no errors, that's why im surprised.

    Spoiler for image:


    Spoiler for Code:
    public void initialise(String alias) {
    System.out.println("Connecting to " + alias + " database..");
    for (DatabaseConnection poolConnection : pool) {
    if (!poolConnection.connect())
    continue;
    //poolConnection.setState(State.IDLE);
    System.out.println("Successfully connected to " + alias
    + " database!");
    }
    }
    I would remove this code as it seems to do nothing.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Feb 2014
    Posts
    52
    Thanks given
    17
    Thanks received
    6
    Rep Power
    11
    That same exact code is used for loginserver and it works, i don't understand


    EDIT:
    Spoiler for code:
    Reply With Quote  
     

  6. #6  
    Registered Member
    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,697
    Thanks given
    170
    Thanks received
    285
    Discord
    Arch337#1337
    Rep Power
    590
    Quote Originally Posted by Ghoul_ View Post
    That same exact code is used for loginserver and it works, i don't understand


    EDIT:
    Spoiler for code:
    Because you should import the mysql jar and use it to connect to mysql.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Feb 2014
    Posts
    52
    Thanks given
    17
    Thanks received
    6
    Rep Power
    11
    I have the newest mysql connector imported.

    Spoiler for Image:


    If you're interested in helping we could talk on discord other than spam here,
    My user: Ghoul#5066
    Reply With Quote  
     

  8. #8  
    Registered Member
    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,697
    Thanks given
    170
    Thanks received
    285
    Discord
    Arch337#1337
    Rep Power
    590
    Quote Originally Posted by Ghoul_ View Post
    I have the newest mysql connector imported.

    Spoiler for Image:


    If you're interested in helping we could talk on discord other than spam here,
    My user: Ghoul#5066
    Thing is, it seems like you are not even using mysql for anything. If you do then there is tutorial out there to make a connection to it.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Feb 2014
    Posts
    52
    Thanks given
    17
    Thanks received
    6
    Rep Power
    11
    I literally just said before, that my loginserver is connected to my mysql, and my server is not, it connects to the loginserver but not the mysql database.
    Reply With Quote  
     

  10. #10  
    Registered Member
    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,697
    Thanks given
    170
    Thanks received
    285
    Discord
    Arch337#1337
    Rep Power
    590
    Quote Originally Posted by Ghoul_ View Post
    I literally just said before, that my loginserver is connected to my mysql, and my server is not, it connects to the loginserver but not the mysql database.
    This is the first time you mention that mysql is connected to your login server.
    I have also seen no code to suggest such thing from you yet.
    Are you sure your loginserver connect to mysql? Because it is hard to just see the codes you have send as they do not have any logical connection to something.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    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. Mysql issue
    By Mr House in forum Help
    Replies: 0
    Last Post: 05-22-2011, 11:35 PM
  2. MYSQL issue's
    By Rainex in forum Help
    Replies: 6
    Last Post: 04-05-2011, 06:31 PM
  3. [317]MYSQL server (includes Website etc)
    By killdogz in forum Downloads
    Replies: 55
    Last Post: 10-21-2010, 08:30 PM
  4. Rs 317[mysql]
    By nl pk3er in forum Requests
    Replies: 1
    Last Post: 09-11-2010, 01:17 PM
  5. MYSQL Issue?
    By Lock321 in forum Help
    Replies: 2
    Last Post: 11-06-2009, 12:08 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
  •