There is no XAMPP version 3.2.2. Please read the following thread to see where you can find the correct version information:
The error message is very clear. The SQL Server you are trying to connect to does not have an accessable service running on the expected port. So either there is a firewall blocking your connection attempt or there is no mysql service running.
P.S.: You should begin to use other MySQL drivers like mysqli or PDO. mysql will no longer work with the current PHP version 7.X