1

I am trying to configure an Execute SQL Script from install4j in order to crate a database schema, but that Script/Item fails.

Here are the current settings:

  • JDBC Driver class name: DriverManager
  • JDBC URL: jdbc:mysql://localhost/
  • User: root
  • Password: password
  • SQL SCRIPT:

CREATE DATABASE IF NOT EXISTS videos;

GRANT USAGE ON . to videos_user@localhost IDENTIFIED BY '123password';

GRANT ALL PRIVILEGES ON videos.* TO videos_user@localhost;

FLUSH PRIVILEGES;

This at the moment is failing. I think the issue is that I need to add the JDBC driver JAR file. But I don't know where to get it and what class to add in the Driver class name.

I know this migh be a "noob" questions, but I am really stuck at this point.

Thank you!

1
  • I've added the driver. But I'm still having errors. Commented May 6, 2015 at 23:17

2 Answers 2

1

Fixed it.

Sign up to request clarification or add additional context in comments.

Comments

0

Add the JDBC driver JAR on the "Installer->Custom Code & Resources" step.

1 Comment

Where do i find it? what's the class name?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.