/gs-mysql

Sample SpringBoot with MySQL integration

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

gs-mysql

Sample SpringBoot with MySQL integration

Command for connecting to database and creating a table

mysql> create database db_example; -- Create the new database
mysql> create user 'springuser'@'%' identified by 'ThePassword'; -- Creates the user
mysql> grant all on db_example.* to 'springuser'@'%'; -- Gives all the privileges to the new user on the newly created database