MySQL Forums
Forum List  »  MySQL Workbench

Workbench scripting snipets fail
Posted by: Tim Coulter
Date: November 30, 2019 11:14AM

I am new to Workbench and really rusty. I installed MySQL 8 suite recently and wanted to try things out how things work. I suspect at least one other person has experienced this problem, right?

This is the snipet I tried to run:
---------------------------------
# iterate through all schemas
for schema in grt.root.wb.doc.physicalModels[0].catalog.schemata:
print schema.name

This is the result:
------------------
Running snippet...
Traceback (most recent call last):
File "<string>", line 2, in <module>
AttributeError: 'NoneType' object has no attribute 'physicalModels'
Snippet execution finished with an error

Options: ReplyQuote


Subject
Views
Written By
Posted
Workbench scripting snipets fail
60
November 30, 2019 11:14AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.