People using MySQL might also want to consider putting their database
connection information in a props file. See
http://groups.google.com/group/liftweb/browse_thread/thread/763cbe16259ce3ea.

Perhaps something to add to the wiki?

Peter

On Jun 23, 12:48 pm, David Pollak <feeder.of.the.be...@gmail.com>
wrote:
> Rog,
>
> Thanks for pointing to this old wiki page.  I've changed Can -> Box.  I've
> updated the wiki.
>
> And, yes, it should work.
>
> Thanks,
>
> David
>
>
>
> On Tue, Jun 23, 2009 at 11:01 AM, Rogelio <rogbo...@gmail.com> wrote:
>
> > Hi All,
>
> > I'm new to Lift so forgive me if this is old news -- I did not see
> > this info in a search of the
> > group archive.
>
> > I've been trying to get Lift to work with MySQL following the
> > instructions on the
> > wiki:  http://wiki.liftweb.net/index.php/HowTo_configure_lift_with_MySQL
>
> > I kept getting an error that  "Can" was an unresolved symbol in line 2
> > of this section of code:
>
> > <code>
> > object DBVendor extends ConnectionManager {
> >  def newConnection(name: ConnectionIdentifier): Can[Connection] = {
> >   try {
> >     Class.forName("com.mysql.jdbc.Driver")
> >     val dm = DriverManager.getConnection("jdbc:mysql://localhost/name-
> > of-your-database?user=root&password=mysql-password")
> >     Full(dm)
> >   } catch {
> >     case e : Exception => e.printStackTrace; Empty
> >   }
> >  }
> >  def releaseConnection(conn: Connection) {conn.close}
> > }
> > </code>
>
> > I found that if I replaced the word "Can" with "Box" (ie Box
> > [Connection]), then I was able to
> > get the wiki instructions to work.  I also has to preface the two
> > import statement in the
> > wiki with "_root_."  So far it appears to work, but others with more
> > experience may want
> > to weigh in.
>
> > Thanks,
> > Rog
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to