Now, you can work with testdb2 from the MySQL Workbench. The testdb2 node is open as shown in the following screenshot. Seventh, to select the testdb2 database, (1) right-click the database name and (2) choose Set as Default Schema menu item: If everything is fine, you will see the new database created and showed in the schemas tab of the Navigator section. Note that the CREATE SCHEMA statement command has the same effect as the CREATE DATABASE statement. Sixth, MySQL Workbench opens the following window that displays the SQL script which will be executed. You need to (1) enter the schema name, (2) change the character set and collation if necessary, and click the Apply button: Creating a new schema also means creating a new database.įifth, the following window is open. In MySQL, the schema is the synonym for the database. MySQL Workbench opens the following window which consists of four parts: Navigator, Query, Information, and Output.įourth, click the create a new schema in the connected server button from the toolbar: Third, double-click the connection name Local to connect to the MySQL Server. You need to (1) type the password for the root user, (2) check the Save password in vault, and (3) click OK button. MySQL Workbench displays a dialog asking for the password of the root user: Second, type the name for the connection and click the Test Connection button. To create a new database using the MySQL Workbench, you follow these steps:įirst, launch the MySQL Workbench and click the setup new connection button as shown in the following screenshot: Bye Creating a new database using MySQL Workbench
0 Comments
Leave a Reply. |