Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
多くのファイルのファイル名とフォルダの場所を保持するMySQLデータベースがあります。(Windowsエクスプローラーを使用して)ファイルの名前を変更するかどうか疑問に思っていましたが、その変更をデータベースに自動的に同期する方法はありますか?新しいファイルを追加したり、ファイルを別のフォルダーに移動したりする場合も同様です。
この場合、「自動的に」は強い言葉です。
スクリプトを実行してファイルシステムをスキャンし、データベースの内容を調整するcronジョブを作成できます。