mysql persistance.xml

<persistence-unit name="NewPersistenceUnit">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <class>com.example.MyApp.models.ProductsEntity</class>
    ...

    <properties>
        <property name="eclipselink.jdbc.url" value="jdbc:mysql://localhost:3306/database"/>
        <property name="eclipselink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
        <property name="eclipselink.jdbc.user" value="root"/>
        <property name="eclipselink.jdbc.password" value="root"/>
    </properties>
</persistence-unit>
Yabaduga