ProFTPD server startup issue in XAMPP on Ubuntu
Hello,
I installed XAMPP on my machine running Ubuntu 20.04.
However, when I start XAMPP, MySQL Database and Apache Web Server start ("Running") but ProFTPD remains "Stopped".
Therefore, when I try to link my JAVA code to my database, I get the error "Cannot establish a connection to jdbc:mysql://localhost:3306/inscription?zeroDateTimeBehavior=convertToNull using com.mysql.jdbc.Driver (Communications link failure ...
My friends told me that I should first address this issue and then everything should work fine.
Thank you in advance for your help.
Configuration: Linux / Chrome 88.0.4324.182
I installed XAMPP on my machine running Ubuntu 20.04.
However, when I start XAMPP, MySQL Database and Apache Web Server start ("Running") but ProFTPD remains "Stopped".
Therefore, when I try to link my JAVA code to my database, I get the error "Cannot establish a connection to jdbc:mysql://localhost:3306/inscription?zeroDateTimeBehavior=convertToNull using com.mysql.jdbc.Driver (Communications link failure ...
My friends told me that I should first address this issue and then everything should work fine.
Thank you in advance for your help.
Configuration: Linux / Chrome 88.0.4324.182
1 answer
-
Hello,
I don't see the connection between your FTP server and your MySQL server; they are two independent servers and thus two independent issues.
Your Java error is related to your MySQL server. Try first to see if you can connect to it using the mysql command. In principle, to connect to a MySQL server, your Java application is supposed to indicate its MySQL login (e.g.mysql -u user_sql -p
). Depending on its source (herelocalhost
), MySQL will check the password corresponding to it in the mysql.user table.
Regardingproftpd
, you should have a service in/etc/init.d
that allows you to start it (e.g. as root:/etc/init.d/proftpd start
) or via the command associated with your boot chain (probablysystemctl start proftpd
). Please report any errors.
Good luck.