cancel
Showing results for 
Search instead for 
Did you mean: 

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

avtor
Champ in-the-making
Champ in-the-making
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=jdbcSmiley Tongueostgresql://localhost:5432/${db.name}

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

sercama
Confirmed Champ
Confirmed Champ

Hi AVTOR _,

You should have the mysql library connector into tomcat/lib folder.

Regards,

Sergio.