Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This extension installs the MariaDB Connector/J for creating MariaDB data sources in Lucee. It is an alternative to the generic MySQL driver.

NotificationsYou must be signed in to change notification settings

cfsimplicity/lucee-mariadb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This extension installs the MariaDB Connector/J Type 4 JDBC driver for creating MariaDB data sources inLucee Server. It is an alternative to the generic MySQL driver.

Installation

via Forgebox

  1. In your Lucee Administrator, go to theExtension > Providers page and addhttps://forgebox.io as a New Extension Provider if not already present
  2. Go toExtension > Applications and look forMariaDB in the "Not installed" section
  3. Click the extension and install

Manual

  1. Download the the lucee-mariadb.lex file
  2. In your Lucee Administrator, go to the Extension > Applications page
  3. Under "Upload new extension", select the lex file and click "Upload"

Usage

Once installed you can either create datasources in the Lucee Administrator using the newly added "MariaDB" type, or you can define them in your Application.cfc as follows:

this.datasource = {class: "org.mariadb.jdbc.Driver",connectionString: "jdbc:mariadb://[hostname]:[port]/[database]?<parameter>=<value>",username: [username],password: [password]//other options if required};

More details on defining Lucee datasources

Full driver documentation

Migration from the MySQL driver

Note that when inserting records into tables with an auto-increment primary key, the MySQL driver returns the new primary key value in two variables in the query result:

GENERATED_KEYgeneratedKey

However the MariaDB driver returns the value in the following variables:

generatedKeyinsert_id

Before switching drivers, you should therefore check that your code is usinggeneratedKey andnotGENERATED_KEY.

Credits

Inspiration came fromBruce Kirkpatrick.

About

This extension installs the MariaDB Connector/J for creating MariaDB data sources in Lucee. It is an alternative to the generic MySQL driver.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp