PDA

View Full Version : Working with mysql



martinfowler
2005-09-04, 18:17
I realize mysql isn't supported but I'm wondering if anyone else has played with it and can help me on this.

I followed the advice on the wiki (http://wiki.slimdevices.com/index.cgi?MySQL) but couldn't get it to work. I made the changes in my preferences file. When I ran slimserver it didn't access mysql. After I stopped the slimserver the changes were missing from the preferences file (there were no preferences for dbusername, dbpassword, or dbsource).

I poked around a bit in the source. In DataModel.pl when it read the dbsource value from the Prefs module it had the default. Haven't tried investigating further - anyone got any tips?

I was using Slimserver 6.1.1 on Debian Sid.

mherger
2005-09-04, 21:21
> I followed the advice on the wiki
> (http://wiki.slimdevices.com/index.cgi?MySQL) but couldn't get it to
> work. I made the changes in my preferences file. When I ran slimserver
> it didn't access mysql. After I stopped the slimserver the changes were
> missing from the preferences file (there were no preferences for
> dbusername, dbpassword, or dbsource).

You have to do the changes when the server is _not_ running. Or the prefs
file will be overwritten by whatever values are in the executed instance's
memory.

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

martinfowler
2005-09-05, 05:36
Every time I changed the prefs file the server wasn't running and I restarted it.