Query SQL Tables from Web Server
Posted: Fri Jan 22, 2016 4:09 pm
Sorry in advance if I posted this under the wrong forum, I couldn't really find a category to throw it under...
I've seen a few servers that offer a way to manage auction house listings and lookup monster/item information. I know all of this is done through PHP and accessing their MySQL database tables. I got all that, but the issue I'm having is actually accessing it in the first place.
I found a post by Tagban from some time ago (been trying to relocate it for like the last 20 minutes...) about how to show a server status using PHP. Simple enough - just use a simple PHP script to access your MySQL. Trouble is, I cannot even access my database remotely.
I'm totally new to MySQL and networking, spent the last 24 hours it seems researching the subject and have hit dead ends left and right. I've added user accounts to my database under MySQL workbench, assigned them specifically to my web server IP (where my Wordpress site is hosted), tried adding rules to my firewall on my VPS, but I still have yet to successfully connect to MySQL database.
My end goal is to allow players the ability to modify auction house listings, but I'd be happy with just doing a simple item lookup for now. I'm using all of the software and programs listed in the Building the Server walkthrough. Can anyone point me in the right direction as to how to allow the ability to access my database from an outside source?
Would I need to add a bind-address setting in my.ini config for MySQL Server 5.6? While we're on that subject, I've seen several websites suggest commenting out 127.0.0.1 to allow for binding. I know that somehow I need to access my database using my VPS IP, but how do I do that? Add in a line in the my.ini?
Any help is greatly appreciated, thanks!
I've seen a few servers that offer a way to manage auction house listings and lookup monster/item information. I know all of this is done through PHP and accessing their MySQL database tables. I got all that, but the issue I'm having is actually accessing it in the first place.
I found a post by Tagban from some time ago (been trying to relocate it for like the last 20 minutes...) about how to show a server status using PHP. Simple enough - just use a simple PHP script to access your MySQL. Trouble is, I cannot even access my database remotely.
I'm totally new to MySQL and networking, spent the last 24 hours it seems researching the subject and have hit dead ends left and right. I've added user accounts to my database under MySQL workbench, assigned them specifically to my web server IP (where my Wordpress site is hosted), tried adding rules to my firewall on my VPS, but I still have yet to successfully connect to MySQL database.
My end goal is to allow players the ability to modify auction house listings, but I'd be happy with just doing a simple item lookup for now. I'm using all of the software and programs listed in the Building the Server walkthrough. Can anyone point me in the right direction as to how to allow the ability to access my database from an outside source?
Would I need to add a bind-address setting in my.ini config for MySQL Server 5.6? While we're on that subject, I've seen several websites suggest commenting out 127.0.0.1 to allow for binding. I know that somehow I need to access my database using my VPS IP, but how do I do that? Add in a line in the my.ini?
Any help is greatly appreciated, thanks!