...
Code Block | ||
---|---|---|
| ||
$ SET PASSWORD FOR 'root'@'localhost' = PASSWORD('custompassword'); |
...
Code Block | ||
---|---|---|
| ||
$ show databases; |
(Make sure you have put semicolon(;) in the end of the line) to see the list of databases.
...
Code Block | ||
---|---|---|
| ||
$ create database gogs; |
To check if database was created write the line
Code Block | ||
---|---|---|
| ||
$ show databases |
again.
If “gogs” database is present in the list, you are good to go. Enter “exit” and close the cmd.