MySQL

MySQLを起動しようとしたら、間違ったIPアドレスを見に行っていた問題

問題 mysqlを起動させようとしても、なぜか途中で起動が終わってしまう。 $ ps -ef | grep mysql centos 27647 27403 0 11:55 pts/1 00:00:00 grep --color=auto mysql mysqlが起動してないな。 $ sudo mysqld_safe 190611 11:54:28 mysqld_safe Logging to …

bundleでmysqlをインストールできない問題

問題 $ bundle install The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add tho…

DBのマイグレーションが上手くいかない

問題 マイグレーションしようとしてもエラーが出る $ docker-compose -f ./migration-docker-compose.yml run liquibase migrate db db_migration.yaml [DEBUG] db_migration.yaml Unexpected error running Liquibase: Could not acquire change log lock. …

MySQL ユーザー作成・権限付与

rootでログイン mysql -uroot -ppassword 新たにユーザーを作成 create user {new_user} identified by '{password}'; 権限付与 権限付与の構文 grant 権限内容 on 権限対象DB to ユーザー identified by 'パスワード'; 権限内容 all privileges:GRANT(権…