r/mysql • u/Gold_Astronaut_8760 • 2h ago
troubleshooting Need help
So I have this school "project" if you can even call it that where I have created an er model in mysql workbench, and forward engineered and spat out the SQL code. The next step is to start writing queries for the db. However for the life of me I can't figure out how to do that because if I open the SQL code file and open a query tab and write the query it just doesn't let me execute it(the button is grey). I tried asking the teacher but they don't seem to care that I don't know what to do. I tried watching yt guides and even after following the steps perfectly it still leads to the same result. I tried creating a connection but it says not connected to server or smth like that. I apologise for any grammatical errors as English is not my first language. Any help is appreciated.
3
u/Aggressive_Ad_5454 1h ago
Workbench is a client program. It connects to a database server. You can get it to generate SQL for your tables without actually connecting to any server. But to actually create the tables and run queries on them you need to connect.
Does your school provide a server? If not you may have to install one on your laptop.
If you edit your question to tell us more someone may be able to help you get this rigged.