skip to Main Content

Renaming jpg to jpeg in mysql

I am looking to rename all files from .jpg to .jpeg if they exist in the column. structure: tables: table1, table2, ... column1 column2 image1.jpg id1 image2.jpg id2 image3.jpeg id3 id4 Change image1.jpg to image1.jpeg in table1, column1 for the…

VIEW QUESTION

"ECONNRESET" error in node mysql application

This error comming from my hosted node mysql application. It's wokrs fine in my local computer node:events:491 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) Emitted 'error' event on Connection instance at: at Connection._handleProtocolError (/home/ufkgmlcg/nodevenv/happyface_social/16/lib/node_modules/mysql/lib/Connection.js:423:8)…

VIEW QUESTION

How to assign values to a sql query inside multiple where clause and run query in single command – Mysql

I have values array as : const params = [ ['2022-12-10', 'aaaaa', '2022-12-01', 'xhxha', '2022-12-10'], ['2022-12-11', 'ababa', '2022-12-01', 'xhxha', '2022-12-11'], ['2022-12-12', 'acaca', '2022-12-01', 'xhxha', '2022-12-12'], ['2022-12-13', 'adada', '2022-12-01', 'xhxha', '2022-12-13'], ]; const data = await db.query(`select id, title, DATE_FORMAT(end_date,"%Y-%m-%d") as…

VIEW QUESTION
Back To Top
Search