This will be a short post - but I just wanted to make sure folks saw the new support for MySQL 4 and 5 in the ColdFusion Administrator. Finally! Now you don't need to download the Jar and set up a custom DSN everytime you want to connect to a MySQL database.
Archived Comments
This was one of the features mentioned in the 1 hour free "ColdFusion 8 Beta Preview" at www.lynda.com.
Errrr.... and? Or are you just letting folks know about the free preview?
If you have your MySQL on a Linux box and would like to have Unicode support, you still need to use the old method to define your DSN.
This is the JDBC URL which is created by default: "jdbc:mysql://localhost:3306/mydatabase?"
It must be like "jdbc:mysql://localhost:3306/mydatabase??useUnicode=true&characterEncoding=UTF-8 "
You can find detailed instructions MySQL installation as manual on page: http://howtoforge.com/coldf...
speaking of... we recently knocked out some mysql sites on one of our servers when we did the 7.02 upgrade. woops. What a pain to manually upgrade each sites driver.
"If you have your MySQL on a Linux box and would like to have Unicode support, you still need to use the old method to define your DSN."
Not true. Just create a datasource with the new driver marked MySQL 4/5 and then add the options useUnicode=true&characterEncoding=UTF-8 to the Connection String field. The options automatically get appended to the JDBC URL.
It was one of the first things I noticed since I screwed up and deleted all my settings and had to add my DSN back... I was like YES native 4/5 support.
Support for PostgreSQL is built-in too?
Rob
Yes, but wasn't it in earlier?
No, i had to 5 download the Jar driver and set up a custom DSN.
Thanks
Rob