my SQL can't Connected & Filezilla

for SQL
http://spec-net.esy.es/uploads/1494593967.jpg

Code :

<?php $title = "Admin Panel - Bandung Event Cosplay"; $favicon = "images/logo.png"; $logo = "images/logo.png"; // SQL $server= "sql312.epizy.com"; $username = "epiz_20083101"; $password = "###"; *sensored $database = "epiz_20083101_bec"; mysql_connect($server,$username,$password) or die ("Koneksi Gagal"); mysql_select_db($database) or die ("Database Tidak Bisa Di Buka " ); ?>

for filezilla :
Status: Resolving address of ftp.epizy.com
Status: Connecting to 185.27.134.11:21…
Status: Connection established, waiting for welcome message…
Status: Initializing TLS…
Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to server
Status: Waiting to retry…
Status: Resolving address of ftp.epizy.com
Status: Connecting to 185.27.134.11:21…
Status: Connection established, waiting for welcome message…
Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response: 220-You are user number 424 of 2900 allowed.
Response: 220-Local time is now 05:32. Server port: 21.
Response: 220-This is a private system - No anonymous login
Response: 220 You will be disconnected after 60 seconds of inactivity.
Command: AUTH TLS
Response: 234 AUTH TLS OK.
Status: Initializing TLS…
Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to server

pinging to sql312.epizy.com
http://spec-net.esy.es/uploads/1494571033.jpg

The ping response is normal, the database servers can only be access from our hosting servers.

For the database error, can you please get the actual connection error using mysql_error()?

The FTP log seems to be normal. Do you get any warning dialogs about an invalid certificate? If so, you need to accept the certificate in order to continue.

yes i have :
http://spec-net.esy.es/uploads/1494657757.jpg
but my pass config and Account Password same
http://spec-net.esy.es/uploads/1494658005.jpg
i will try use filezilla its work
http://spec-net.esy.es/uploads/1494602933.jpg
now i just have error in my db

The error message implies the database name is not correct. It should look something like test_12345678_my_database.

solved