2022.03.25 TIL
4399 ワード
特定のテーブル文字セットの校正をutf 8 mb 4 general ciに変更
alter table smslogs
convert to character set utf8mb4 collate utf8mb4_general_ci;
リモート接続のすべてのパーミッションサイクル
grant all privileges on *.* to 'root'@'%' identified by '{password}';
mysql情報はすべて正しいです。sequelize orm accessが拒否された場合、
ERROR 1698
ルートのpluginをチェック
+------------------+-----------------------+
| user | plugin |
+------------------+-----------------------+
| root | auth_socket |
| mysql.session | mysql_native_password |
| mysql.sys | mysql_native_password |
| debian-sys-maint | mysql_native_password |
| root | mysql_native_password |
+------------------+-----------------------+
auth socketの場合はmysql native passwordに置き換えます.
ERROR 1045
+-------------------------------------------+------------------+
| authentication_string | user |
+-------------------------------------------+------------------+
| | root |
| THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql.session |
| THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql.sys |
| 3FA0FFC368E9A68176619D90CA4395682B653194 | debian-sys-maint |
| 14661CA7984D6CF0236B0CCD9ED8CFF4297A02E2 | root |
+-------------------------------------------+------------------+
ERROR 1698を解決すると、他の問題が発生します.
ちなみにMySQLの一定バージョンからpassword列はauthentication string列に取って代わられます.(汚い…)
の埋め合わせを
update user set authentication_string=password('{당신이 쓸거}') where host='localhost' and user='root';
特定のパターンをVimで必要な文字で置き換える
:%s/{pattern}/{string}/g
チュートリアルを見ている以外に、私は初めて直接飛ぶインスタンスのローカルDBを設定してみました.汚い
奮闘から始まるMySQL
> sudo systemctl start mysql
mysql接続
> sudo /usr/bin/mysql -u root -p
毎回sudoとルーティングするのが面倒なのでshell scriptにしました.> echo sudo /usr/bin/mysql -u root -p >> connect.sh
> chmod 777 connect.sh
> ./connect.sh
gitタグを使用したジオメトリの管理
git tag -a [v1.1.0] [commit hash] -m "[메세지]"
Git pull衝突時https://frontdev.tistory.com/entry/GIT-Conflict%EC%B6%A9%EB%8F%8C-%EB%82%AC%EC%9D%84-%EB%95%8C-%EA%B0%95%EC%A0%9C%EB%A1%9C-Pull-%ED%95%98%EA%B8%B0
参考資料
https://studioplug.tistory.com/357
Reference
この問題について(2022.03.25 TIL), 我々は、より多くの情報をここで見つけました https://velog.io/@goatyeonje/TILテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol