Error #3144 – Cannot create a JSON value from a string with CHARACTER SET ‘binary’.
last day when i was exporting my database, i got above error. I solved the same by below way. I am saving it for my future use. Hope so, this will help someone also.
Suppose i have below table
CREATE TABLE `tbl_order_master` ( `ID` int(11) UNSIGNED NOT NULL, `Status` enum('C','P','PP') NOT NULL DEFAULT 'PP' , `orderinfo` json DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
when i insert below data it will throw errors.
INSERT INTO `tbl_order_master` (`ID`, `Status`, `orderinfo`) VALUES (1,'PP',X'7B2264617461223A207B224F454D223A20224F4E455F415050227D');
#3144 – Cannot create a JSON value from a string with CHARACTER SET ‘binary’.
But when i will change the field `orderinfo` value with CONVERT function for e.g .
INSERT INTO `tbl_order_master` (`ID`, `Status`, `orderinfo`) VALUES (1,'PP', CONVERT(X'7B22666F6F223A2022626172227D' using utf8mb4));
This will insert one row successfully in the database. Below will be the data in the table.
SELECT * FROM `tbl_order_master`
App usage is growing steadily without showing any signs of slowing down. Hence, it is no surprise that mobile applications…
As the world has grown more digital, businesses have adapted themselves. An effectual adaptation includes online advertising. Offline advertising styles…
Step into a world where apps dance to the user's tune. Picture Instagram, a photo-sharing sensation that swept the globe.…
COVID-19 has led to a digitalization of lifestyle. As patients are taking their mental and physical health more seriously, healthcare…
Introduction WordPress, an immensely popular content management system (CMS), powers over 40% of the internet. What makes WordPress even more…
For moving companies trying to capture their market share amidst stiff competition, a tip or two about what they can…