Bug 1931 - Problem with 6.2 rev 3868 and MySQL?
: Problem with 6.2 rev 3868 and MySQL?
Status: RESOLVED INVALID
Product: Logitech Media Server
Classification: Unclassified
Component: Audio
: 6.2.0
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Robert Moser II
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-04 23:24 UTC by Gordon Harris
Modified: 2008-09-15 14:36 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gordon Harris 2005-08-04 23:24:29 UTC
When attempting to start slimserver.pl, I get the error:

--- !perl/YAML::Error
code: YAML_LOAD_ERR_BAD_MAP_ELEMENT
msg: Invalid element in map
line: 105
document: 1
...
at C:/Program Files/SlimServerBeta/server/Slim/Utils/Prefs.pm line 909

----------------------------------------------------------------------

My line 105 in slimserver.pref is:

dbusername=slimserver

--followed by---

dbpassword=slimserver
dbsource=dbi:mysql:database=slimdata

I've created the MySQL slimserver user with an "old style" password 
of "slimserver" and created the "slimdata" database. Has the switch to the YAML 
method of storing prefs broken support for MySQL??
Comment 1 Dan Sully 2005-08-04 23:26:46 UTC
Robert - thoughts here?
Comment 2 Gordon Harris 2005-08-04 23:34:21 UTC
Oops.  It seems to be working now.  Sorry.
Comment 3 Robert Moser II 2005-08-05 09:34:19 UTC
We need to update the docs around MySQL support to reflect the YAML way of
editing the prefs file.

dbusername=slimserver
dbpassword=slimserver
dbsource=dbi:mysql:database=slimdata

These are all the way we did it before.  Now it would be:

dbusername: slimserver
dbpassword: slimserver
dbsource: dbi:mysql:database=slimdata