I don't think this is a duplicate. Firstly, I use different environment where configuration is slightly different. Secondly, I knew the solution proposed in that question, and asked if there was any other way to accomplish that. There is difference between configuring IntelliJ to be able to connect to MySQL, and using a database driver in your project. Add a comment.
Active Oldest Votes. Short answer - Yes, project driver jars need to be mentioned explicitly. You can do it the following ways: Manually add driver jar as library to the project like you did In code, use the driver class. Use Intellisense to import the JAR screenshot below. Same as above but for maven based project screenshot below. Improve this answer. DeepakV DeepakV 2, 1 1 gold badge 15 15 silver badges 20 20 bronze badges. Does any of your solutions uses this loading drivers during DriverManager initialization that I've mentioned in my question?
Doing DriverManager initialisation in code requires Class. Intellij will not load class because its a string. Thus, just for import, write the driver class name with package anywhere in your code, and then use intellij suggestions to import the JAR. Once imported, remove that class name code.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Ready to get started? SQLDriver from the list. Connect With Us. NET Python Delphi. Chat This website stores cookies on your computer. These cookies are used to collect information about how you interact with our website and allow us to remember you. We use this information in order to improve and customize your browsing experience and for analytics and metrics about our visitors both on this website and other media.
If you are accessing this page from a non-English language version, and want to see the most up-to-date content, please select Read in English at the top of this page. You can download different languages from the US-English version site by selecting available languages. For details about this release, see the release notes and system requirements. Unsupported driver versions aren't available for download here. We're continually improving the Java connectivity support.
Skip to main content. This browser is no longer supported. Download Microsoft Edge More info.
0コメント