At the linuxfromscratch project we have been using Trac for a very long 
time.  The last time we updated Trac was in 2021 using the latest 
development system at that time.  Over the years our sqlite databases have 
grown quite large: 287M, 884M, and 642M respectively.

We have noticed some response problems and want to update to the latest 
Trac and convert to mariadb.

Doing some testing on a test server we installed python3.13, Trac-1.6, 
PyMySQL, and mariadb-11.8.5. We then copied a current trac.db to the test 
system and ran sqlite3mysql to copy the trac.db into mariadb.  

We can log into mariadb with  'mariadb -u tracuser -p trac_db' and all 
looks good.  We do have a symlink  /usr/bin/mysql -> mariadb

We then edited the  trac.ini file to read:

#[sqlite] 
#extensions = 
...
[trac]
...
#database = sqlite:db/trac.db 
#database = mysql://tracuser:password/trac_db?unix_socket=/run/mariadb/
    mariadb.sock 
database = mysql://tracuser:password@localhost/trac_db

but no matter what we try after restarting apache get the error message:

TracError: Unable to check for upgrade of trac.db.api.DatabaseManager: 
TracError: Unsupported database type "mysql"

What are we missing?

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/trac-users/04230c00-6dfc-40d6-9cb7-02f52912bff6n%40googlegroups.com.

Reply via email to