Charles Robertson
08/06/2022, 10:34 AMcfconfig datasource save name=eblog-installer dbdriver=mysql host=localhost port=3306 database=eblog-installer username=myUsername password=myPassword
My current recipe look like this:
cd C:\ColdFusion2018\cfusion\wwwroot\eblog-installer\installer
server set web.http.port=8502
server show web.http.port
server set openBrowserURL=/index.cfm
server start cfengine=adobe@2018
And do I need to add the MySQL driver .jar to the CommandBox/jre/libbdw429s
08/07/2022, 6:53 PMCharles Robertson
08/08/2022, 1:53 PMmysql-connector-java-5.1.42-bin.jar
] for CF2021, so I reverted to:
mysql-connector-java-8.0.25.jar
Bug:
https://www.bennadel.com/blog/4144-the-value-class-java-time-localdatetime-cannot-be-converted-to-a-date-in-coldfusion.htmbdw429s
08/08/2022, 3:26 PMcfconfig datasource save
command to add a datasource, but if you already have a JSON file at play, it's simpler to just use that. The easiest way to create the JSON is to set the datasource manually in your administrator and then use
cfconfig export .cfconfig.json
to get an export of all your settings. Or if you want to JUST grab the datasources, run this
cfconfig export to=.cfconfig.json includeList=datasources
Then you can replace any passwords if you like with ${DB_PASS}
placeholders (or whatever you want to name your env var).bdw429s
08/08/2022, 3:27 PMbdw429s
08/08/2022, 3:28 PMCharles Robertson
08/08/2022, 3:53 PM