AnsweredAssumed Answered

Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'

Question asked by avtor on Aug 13, 2014
Latest reply on Oct 20, 2014 by jonvargas
Alfresco 4.2 whith PostgreSQL database.
OS: Ubuntu 14.04 server.

When i try to invoke export/import tools, for example:

java -cp "/mnt/4TB/DST/alfresco/alfresco-4.2/tomcat/lib/servlet-api.jar:classes/alfresco/module:classes:lib/*" org.alfresco.tools.Import -user admin -pwd admin -store workspace://SpacesStore -path sys:system -verbose Zone.xml

i get following message: [alfresco.repo.admin] [main] Using database URL 'jdbc:mysql:///alfresco' with user 'alfresco'.
then: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'

Alfresco-global.properties contain :
### database connection properties ###
db.driver=org.postgresql.Driver
db.username=alfresco
db.password=${password}
db.name=alfresco
db.url=jdbc:postgresql://localhost:5432/${db.name}

Please, help me find out, how to correct invoke export/import tools.

Outcomes