
---
I'm testing a local instance of LC server before I commit to LC server hosting.
I've installed LC community server and revIgniter. Everything seems to be working "like a champ."
I've successfully displayed views with "dynamic data", i.e., data I placed in gData[] in the controller.
Now I want to try sucking some data out of a MySQL DB. I set up MySQL on my machine and I can connect to it via MySQL Workbench. But, I cannot seem to connect using the revIgniter functions.
Using the "blog" example from the revIgniter user guide, I have this controller:
Code: Select all
<?lc
# PUT YOUR HANDLER NAMES INTO THE GLOBAL gControllerHandlers AS A COMMA SEPARATED LIST
put "index,blog" into gControllerHandlers
command blog
get rigLoadDatabase()
end blog
command index
put "Tend Chickens,Get Chips,Pay Bills" into gData["toDoList"]
put "My Real Title" into gData["title"]
put "My To Do List" into gData["heading"]
get rigLoadView("blogview")
end index
I've configured the database settings in application/config/database.lc. All of the settings are correct. (Correct port, correct host, correct username & pw, etc.) It does not work regardless of how I have SSL set (i.e., either SSL turned on or off in both the database and my configuration file).
There must be some configuration error, but I cannot figure out what it is.
Any insight is appreciated.