Skip to content

Commit

Permalink
some notes on db added
Browse files Browse the repository at this point in the history
  • Loading branch information
mauryakrishna committed Nov 6, 2021
1 parent 57678ee commit 5c73358
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion migrations/db-migrate-command
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ Add column
ALTER TABLE tablename ADD columnname data_type;

Drop column command
ALTER TABLE tablename DROP COLUMN columnname
ALTER TABLE tablename DROP COLUMN columnname

For mysql 5.7 - Source https://stackoverflow.com/questions/33510184/how-to-change-the-mysql-root-account-password-on-centos7
to get the intial temporary password on install -> grep 'temporary password' /var/log/mysqld.log

0 comments on commit 5c73358

Please sign in to comment.