Hack Forums
Connection failed: MySQL server has gone away - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Website Hacking (https://hackforums.net/forumdisplay.php?fid=43)
+---- Thread: Connection failed: MySQL server has gone away (/showthread.php?tid=5105746)



Connection failed: MySQL server has gone away - DataDumper - Dec 23, 2015

Hi guys

so i have dumped a sql and i want to connect it from dbNinja on my remote PC

all i get is
Code
"Connection failed: MySQL server has gone away"

any issues for that? i know its max_allowed_packet, but i wont change it its not in my range, any ideas?

i have

Code
$servername = "************";
$username = "************";
$password = "************";
$dbname = "************";



* - Mr.0_0 - Dec 23, 2015

Very rarely will you be able to connect to a database remotely. Try to use HeidiSQL to make an authentication attempt towards the database. You can also scan the host on port 3306 to see the status of that port. Is there an error code or was it just that error?


* - DataDumper - Dec 23, 2015

That error, and the port 3306 is open

i know i checked ports
Code
PORT     STATE SERVICE
21/tcp   open  ftp
22/tcp   open  ssh
53/tcp   open  domain
80/tcp   open  http
106/tcp  open  pop3pw
110/tcp  open  pop3
111/tcp  open  rpcbind
143/tcp  open  imap
443/tcp  open  https
993/tcp  open  imaps
995/tcp  open  pop3s
3306/tcp open  mysql
3690/tcp open  svn
8443/tcp open  https-alt

but url:3306

says that i have no permission to connect this MySQL from IP "MY PORXY IP ADDRESS HERE"


* - ProblemSolva - Dec 23, 2015

Its probably whitelisted so only they can access it, or it only accepts connections from localhost.


* - DataDumper - Dec 23, 2015

Ya sad i didint shell it, otherwise i could connect from localhost... will keep tryin, thanks guys.