Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
databasereferencecheatsheet [2024/01/25 15:50] wikiadmin [Microsoft SQL Server] |
databasereferencecheatsheet [2025/04/22 15:19] (current) wikiadmin [SQLite] |
||
---|---|---|---|
Line 9: | Line 9: | ||
====Microsoft SQL Server==== | ====Microsoft SQL Server==== | ||
- | The latest | + | The JDBC driver |
- | https://docs.microsoft.com/en-us/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server? | + | |
+ | https://repo1.maven.org/maven2/com/microsoft/sqlserver/mssql-jdbc/ | ||
**Database Driver Class**: com.microsoft.sqlserver.jdbc.SQLServerDriver | **Database Driver Class**: com.microsoft.sqlserver.jdbc.SQLServerDriver | ||
Line 16: | Line 17: | ||
**Database URL**: < | **Database URL**: < | ||
- | [[sql_server_express_connnection_tutorial|More information on using SQL Server Express]] | + | [[sql_server_express_connnection_tutorial|More information on configuring and using SQL Server Express |
====MySQL==== | ====MySQL==== | ||
- | The latest community edition of the JDBC driver | + | The JDBC driver |
+ | |||
+ | https://repo1.maven.org/maven2/com/mysql/mysql-connector-j/9.2.0/ | ||
Note: The MariaDB driver (below) will also work for MySQL | Note: The MariaDB driver (below) will also work for MySQL | ||
Line 27: | Line 31: | ||
**Database Driver Class**: com.mysql.cj.jdbc.Driver (this has changed, but older drivers will use com.mysql.jdbc.Driver) | **Database Driver Class**: com.mysql.cj.jdbc.Driver (this has changed, but older drivers will use com.mysql.jdbc.Driver) | ||
- | **Database URL**: < | + | **Database URL**: < |
- | or, with parameters, such as: | + | jdbc: |
- | | + | or, with parameters, such as: |
+ | jdbc: | ||
+ | jdbc: | ||
+ | Default port is 3306. The timezone may not be required - depends on the timezone of the server. | ||
+ | jdbc: | ||
====MariaDB==== | ====MariaDB==== | ||
Line 67: | Line 75: | ||
SQLite is a file based database, so the format of the URL will not include the " | SQLite is a file based database, so the format of the URL will not include the " | ||
- | get the latest JDBC driver: https://www.sqlite.org/download.html (the driver is included in the distribution, | + | get the latest JDBC driver |
+ | https://sourceforge.net/ | ||
**Database Driver Class**: org.sqlite.JDBC | **Database Driver Class**: org.sqlite.JDBC | ||
**Database URL**: < | **Database URL**: < | ||
+ | |||
+ | Example: jdbc: | ||
+ | |||
+ | This will create a file called testdb.sqlite in the directory where the application is running. When testing in MIStudio this will be the MIStudio main directory. If you are testing in TransSECS (Builder) this file will appear in the TransSECS/ | ||
Note: usually add .sqlite to the file name for SQLite databases, so for example, db_name.sqlite | Note: usually add .sqlite to the file name for SQLite databases, so for example, db_name.sqlite | ||
+ | |||
+ | ====SQL Server Express==== | ||
+ | |||
+ | The JDBC driver that is compatible with Java 8 could be found at: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | JDBC needs to be a Jar in the “drivers” directory of the project. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Choose the first file " | ||
+ | |||
+ | close the project and reload it after adding the driver, or you can exit MIStudio and restart. | ||
+ | |||
+ | Set MIStudio to LIVE when connecting to the database. | ||
+ | |||
+ | |||
+ | **Database Driver Class:** com.microsoft.sqlserver.jdbc.SQLServerDriver | ||
+ | |||
+ | **Database URL: | ||
+ | |||
+ | jdbc: | ||
+ | | ||
+ | or with parameters, such as: | ||
+ | |||
+ | jdbc: | ||
+ | |||
+ | |||
| | ||