So that we can connect to our database from our application, we need to set up a datasource in the Railo Web Administrator. Let's set that up now, by carrying out the following steps:
1. In your browser, open the Railo Web Administrator by going to
http://localhost:8888/railo-context/admin/web.cfm
.2. Click Datasource under the Services section.
3. Enter the name
railoblog
in the Name field of the Create new datasource form, select MySQL from the Type drop-down, and click on Create.4. Since we are doing local development, the Host/Server and Port in the Create new datasource connection MySQL form should be fine. Enter the Database name as
railoblog
and enter values for the Username and Password to connect to the server:5. Finally, click on the Create button at the end of the form.