
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
This files helps you installing the MySQL Database adapter in Zope 3 In this document I'm assuming your Zope3 lives in ~/Zope3.
Installing mysqldbda
Check out the mysqldbda product into ~/Zope3/src
cd ~/Zope3/src
cvs -d :pserver:anonymous@cvs.zope.org:/cvs-repository login
cvs -d :pserver:anonymous@cvs.zope.org:/cvs-repository checkout
mysqldbda
Create a file named 'mysqldbda-configure.zcml' inside ~/Zope3/package-includes with the following contents:
Creating Database Connections
It is time to add some connections. A connection in Zope 3 is registered as a utility.
Open a web browser on your Zope root folder (http://localhost:8080/ if you use the default settings in zope.conf.in).
Click on the 'Manage Site' action on the right side of the screen. You should see a screen which reads 'Common Site Management Tasks'
Around the middle of that page, you should see a link named 'Add Utility'. Click on it.
Select 'MySQL DA' and type in a name at the bottom of the page.
Enter the database connection string. It looks like this:
dbi://username:password@host:port/databasename
Click on the 'Add' button.
You should be on a page which reads 'Add Database Connection Registration'. There you can configure the permission needed to use the database connection, the name of the registration and the registration status. You can use any name for 'Register As' field, as long as it doesn't clash with an existing one. Choose a permission. Choose between 'Registered' and 'Active' for the 'Registration Status'. Only one component of a kind can be 'Active' at a time, so be careful.
You should be redirected to the 'Edit' screen of the connection utility.
If you want to, you can go to the Test page and execute arbitrary SQL queries to see whether the connection is working as expected.
Using SQL Scripts
You can create SQL Scripts in the content space. For example:
Go to Zope root.
Add an SQL script (you can use the Common Tasks box on the left, or the Add action on the right).
Click on the name of your new SQL script.
Choose a connection name (the one you entered in step 29) from the drop-down.
Enter your query and click on the 'Save Changes' button.
You can test the script in the -- surprise! -- Test page.
FAQs
MySQL Database adapter
We found that mysqldbda demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 17 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.