Hi Bahmni team,
As of yesterday I started getting an error while trying to set up Bahmni for endtb with the database located here: https://bahmni-repo.twhosted.com/endtb/release-1.0/mysql_dump.sql
The error I am getting is as follows:
ERROR 1449 (HY000) at line 7501: The user specified as a definer ('openmrs-user'@'172.18.2.30') does not exist
Grepping the mysql_dump.sql file above for “172.18.2.30” returns the following:
[vagrant@192 deployment-artifacts]$ grep '172.18.2.30' mysql_dump.sql
INSERT INTO `db` VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y'),('%','test\\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y'),('%','openmrs','openmrs-user','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'),('localhost','openmrs','openmrs-user','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'),('','openmrs','openmrs-user','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'),('172.18.2.30','openmrs','openmrs-user','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
INSERT INTO `user` VALUES ('localhost','root','*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',NULL,'N'),('127.0.0.1','root','*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',NULL,'N'),('172.18.2.30','openmrs-user','*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0,'mysql_native_password','','N'),('localhost','openmrs-user','*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0,'mysql_native_password','','N'),('%','openmrs-user','*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0,'mysql_native_password','','N'),('','openmrs-user','*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0,'mysql_native_password','','N'),('172.18.2.30','root','*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'mysql_native_password','','N');
/*!50013 DEFINER=`openmrs-user`@`172.18.2.30` SQL SECURITY DEFINER */
/*!50013 DEFINER=`openmrs-user`@`172.18.2.30` SQL SECURITY DEFINER */
/*!50013 DEFINER=`openmrs-user`@`172.18.2.30` SQL SECURITY DEFINER */
[vagrant@192 deployment-artifacts]$
Can you please let me know if there is something I am doing wrong, or perhaps this database artifact was recently updated with this error (I wasn’t having this problem a few days ago)?
Perhaps instead of distributing this SQL separately it could be included within the endtb_config.zip (this would allow us to see it’s version history within the endtb_config repository).
@petmongrels / @shruthidipali / @maheshonopenmrs or others? (Not sure the right list to ping about endtb issues)