PyMySQL installation instructions

23 views
Skip to first unread message

Steel Rides

unread,
Apr 9, 2021, 1:14:55 PM4/9/21
to Trac Users
I'm installing Trac 1.4 on Ubuntu 18.04 and while there are instructions for using MySQL, the recommendation is to use PyMySQL. I'm not familiar with PyMySQL, but it seems like it serves to allow Python to interact with a MySQL server, so I still need to install the MySQL server and create a trac database and then use PyMySQL to interact with it. Are there installation instructions for configuring the Trac installation to use PyMySQL? What is the connection string since mysql://tracuser:password@localhost/trac isn't supported anymore?

Thanks.

RjOllos

unread,
Apr 11, 2021, 4:37:16 PM4/11/21
to Trac Users
On Friday, April 9, 2021 at 10:14:55 AM UTC-7 steel...@raidoh.com wrote:
I'm installing Trac 1.4 on Ubuntu 18.04 and while there are instructions for using MySQL, the recommendation is to use PyMySQL. I'm not familiar with PyMySQL, but it seems like it serves to allow Python to interact with a MySQL server, so I still need to install the MySQL server and create a trac database and then use PyMySQL to interact with it. Are there installation instructions for configuring the Trac installation to use PyMySQL? What is the connection string since mysql://tracuser:password@localhost/trac isn't supported anymore?

Thanks.

PyMySQL replaces MySQLdb as the Python interface to MySQL. The connection string remains the same. Besides the need to install PyMySQL rather than MySQLdb, the change does not impact the installation steps.

Ryan 

Steel Rides

unread,
Apr 12, 2021, 4:16:23 PM4/12/21
to Trac Users
Great. Thanks for the clarification. I misunderstood the error that "mysql" was unsupported.
Reply all
Reply to author
Forward
0 new messages