ProFTPD server startup issue in XAMPP on Ubuntu

leflou_xyz Posted messages 9 Status Member -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -
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

1 answer

  1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
     
    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 (here
    localhost
    ), MySQL will check the password corresponding to it in the mysql.user table.

    Regarding
    proftpd
    , 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 (probably
    systemctl start proftpd
    ). Please report any errors.

    Good luck.
    0