Malformed database URL, failed to parse the main URL sections

There's an invisible character between mysql: and //localhost in your JDBC URL. You can check it here:

https://www.soscisurvey.de/tools/view-chars.php

This shows the string as:

jdbc:mysql:‪U+202A//localhost:3306/miniprojectdb

This U+202A character is LEFT-TO-RIGHT EMBEDDING.


You have a space in jdbc connection URL, remove that space and try again:

jdbc:mysql:‪//localhost:3306/miniprojectdb
-----------^

Tags:

Mysql

Java