Jump to content
  • 0

SQL connection impossible


Captain09

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  02/06/12
  • Last Seen:  

Hey guys,

For a few days I'm trying to setup a simple rathena server on my local computer.

I spent plenty of hours attempting to solve my sql connection issue but I have still no idea what's the matter.

I made sure that the usernames, passwords and databases are filled in correctly, what makes me crazy.

My server applications always look like that:

http://puu.sh/jJQpu/5cc9d2fb3c.png

As the whole relevant environment of my problem is really laborious to describe, I think it would be the best if someone could face the problem with me via a TeamViewer session. However you don't know my computer I can tell you where which application is installed, in doubts you may reinstall every necessary program.

 

I followed these guides:

https://rathena.org/wiki/Installation_on_Windows

https://rathena.org/wiki/SQL_Installation

 

It's only about setting up a simple rAthena SQl server.

If you could help me with that I would be very glad :)

 

Thanks a lot in advance

 

greets

Captain09

Edited by Captain09
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

Check your ports. 

 

MySQL default port is 3600.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  02/06/12
  • Last Seen:  

Im really confused.

I tried your port and many other ports displayed in my MySQL Workbench but still the issue stays.

I'm clueless now :(

 

EDIT:

I tried it with a wampserver and am able to get to this:

http://puu.sh/jKcla/881076e16a.png

but after a short time all applications lose the connection:

http://puu.sh/jKcpE/198eb502f0.png

Edited by Captain09
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

perhap you assigned a wrong  user to allow connection to your database ??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  05/02/13
  • Last Seen:  

According to a google search, the default port for MySQL is 3306. Can you see what your config settings are for your sql server to see what port you have it set to?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  02/06/12
  • Last Seen:  

http://puu.sh/jMgGv/0a813ca37c.png

on the left of this picture you can see that the port 3306 is configured

 

 

http://puu.sh/jMgPZ/24d4ece357.png

this is how my inter_athena.conf looks

 

 

http://puu.sh/jMgSt/7f9233cd33.png

and here is how the errors of my servers in this configuration look like

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  05/02/13
  • Last Seen:  

Alright, stupid question incoming  /meh .

 

I don't know exactly how MySQL Workbench works cuz I used AMPPS during my setup, but in your first image it shows only 1 connection on the left, with a user of "root". Again, I'm not sure how it works, so I don't know if this is just any active MySQL servers you are running, or a list of users.

 

My question is, did you already create a user named "ragnarok" with a password of "ragnarok" and give it all permissions for the database you want to access?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  02/06/12
  • Last Seen:  

Yes, I followed the guide 'install SQL' which instructed me to create a user.

I created a user "ragnarok" with the password "ragnarok" and gave it all permissions.

Edited by Captain09
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  350
  • Reputation:   43
  • Joined:  09/07/12
  • Last Seen:  

I'm not sure if you're aware of what you are doing or not.

1.please make sure you have MySQL server installed in your local computer.

2.Make sure you have the schema/database in your MySQL Server.

3.Ensure that the database name, host and credentials are correctly set.

 

port for mysql is 3306, no need to change this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...