I am getting the following error after deploying a website on server.
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1231 Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER' in lock_may_be_available() (line 167 of /httpdocs/includes/lock.inc).
Basically, I created a Drupal website on local server. After finishing it, I generated the database script and ran it on the live server using phpMyAdmin. Then, I uploaded the files on server and changed the settings.php file for the database credentials.
Once I tried to access the website, I got that error.
Updating phpMyAdmin would fix the issue, but I am running a dedicated server and I don't want to update phpMyAdmin. I am looking for a work-around.