HomeJavaModsJSMySQLFix
JSMySQLFix
ModsJava

JSMySQLFix

by Julijerry · on Modrinth

JSMySQLFix is an innovative plugin designed for the Velocity proxy environment that ensures seamless MySQL database connectivity by automatically…

⬇ Download on Modrinth

JSMySQLFix

Join my Discord

Description: JSMySQLFix is an innovative plugin designed for the Velocity proxy environment that ensures seamless MySQL database connectivity by automatically downloading and embedding the MySQL JDBC drivers. This plugin aims to simplify dependencies for server administrators and address potential issues caused by missing or incorrect drivers.

Features:

Accessing MySQL: Once the JSMySQLFix plugin is installed and the MySQL driver is successfully embedded, other plugins can access MySQL instantly. Developers can utilize standard JDBC connections to interact with their MySQL databases using the following connection string format:

    String ip = "yourIP";
    String port = "3306";
    String databaseName = "yourDatabase";
    String url = "jdbc:mysql://" + ip + ":" + port + "/" + databaseName + "?useSSL=false&allowPublicKeyRetrieval=true";
    String username = "yourUsername";
    String password = "yourPassword";

    try {
        Class.forName("com.mysql.cj.jdbc.Driver");
        logger.info("Attempting to connect to database.);

        connection = DriverManager.getConnection(url, username, password);
        logger.info("Connected to the database.");
    } catch (ClassNotFoundException e) {
        logger.error("MySQL Driver not found: " + e.getMessage());
    } catch (SQLException e) {
        logger.error("Error while connecting to the database: " + e.getMessage());
    }

Ensure to replace <yourIP>, <port>, <yourDatabase>, <yourUsername>, and <yourPassword> with your actual MySQL server details.

Installation:

  1. Download the plugin and place it in the /plugins directory of your Velocity proxy.
  2. Restart the proxy. The plugin will automatically download and embed the necessary MySQL drivers.
  3. Check the logs to confirm that everything has been installed correctly.
Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more