4

I made an SQL Script (I checked it for errors and everything was fine). After that, I opened it in MySQL Workbench. I wanted to run it to view my query results. I clicked: File - Run SQL Script. I selected my file and it came up with an error:

error calling Python module function SQLIDEUtils.runSQLScript

What should I do to successfully run my script file?

3 Answers 3

3

In the MySQLWorkbench, instead of File > Run SQL Script, could you try to use File > Open SQL Script followed by Query > Execute (All or Selection)? This way, you should see an output from each query of the schema.sql script.

You could also try to use the mysql command (from a command line) instead. Or, splitting the schema.sql into smaller chunks to isolate the problem.

If nothing work I suggest you check the MySQL Workbench installation.

Sign up to request clarification or add additional context in comments.

2 Comments

I tried to do like you said, but the option Execute (All or Selection) is grey and I'm not able to click it.
Did you try to reinstall?
1

i think you are not logged in mysql server solution

  1. after downloading mysql workbench and mysql server

2.when you are open mysql workbench left-downside see there mysql connections click on that

3.enter username and password

4.query Execute-all will start working

Comments

1

I also had this problem, turns out I was simply not connected to the Local instance of MySQL. All I had to do was open MySQL Workbench > Toolbar > Database > Connect to Database > Stored Connection (choose local instance mysql) > ok. If it asks for root password, it's just your windows user password.

1 Comment

Seems the option you are suggesting "choose local instance mysql" doesn't exist. As a check, i though it might involve with Python, and checked in command prompt for Python installation, and it does exists! So what might be the problem here?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.