Creating a database using MySQL Workbench with a SQL script is relatively straightforward. Simply go through the following steps:
- Open MySQL Workbench.
- Connect to your local instance or a dev/test instance. Don't perform any of these steps on a live production server.
- Click the new SQL script button, which is highlighted in the following screenshot:
- Copy or type the following script into the script window in MySQL Workbench:
CREATE DATABASE yourschema;
- Click the execute script button, highlighted in the following screenshot:
- Once the script is done executing, the Output ...