MySQLPlatform does not understand #connect:

17 views
Skip to first unread message

Federico Balaguer

unread,
Sep 22, 2014, 10:33:14 AM9/22/14
to dbx...@googlegroups.com
Hello,

I am trying to use Roger Whitney's tutorial on GLORP.  I have the stable versions of Glorp, GlorpDBX and OpenDBXDriver. I am trying to connect to a local mysql database.

One of the first things that the tutorial does is the following code which in my case gives me a MNU on MySQLPlatform because of #connect:

|login accessor result|

login :=(Login new)
        database: MySQLPlatform new;
        username: 'federico';
        password: 'playground';
        host: 'localhost';
       port: '3306';
        connectString: 'localhost_playground'.
       
accessor := DatabaseAccessor forLogin: login.
accessor login.

Should I use a different class instead of MySQLPlatform? I was able to connect to the database with DBXConnection and the DBXMySQLBackend... but I am not sure how these classes are related to GLORP.

Thanks! Federico

Federico Balaguer

unread,
Sep 22, 2014, 12:14:47 PM9/22/14
to dbx...@googlegroups.com
Hello,

I made it work as expected.

I initialized the PharoDatabaseAccessor's DefaultDriver to be GlorpOpenDBXDriver. Somehow I (previously) initialized the DefaultDriver to something else.

Federico
Reply all
Reply to author
Forward
0 new messages