diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc
index 2046596c428ced364e79a558965ef93b36b00b15..ad99d81d7b4a4322df3cca804304a59718de5d3f 100644
--- a/sql/sql_plugin.cc
+++ b/sql/sql_plugin.cc
@@ -681,7 +681,7 @@ void plugin_load(void)
   if (simple_open_n_lock_tables(new_thd, &tables))
   {
     DBUG_PRINT("error",("Can't open plugin table"));
-    sql_print_error("Can't open the mysql.plugin table. Please run the mysql_install_db script to create it.");
+    sql_print_error("Can't open the mysql.plugin table. Please run the mysql_upgrade script to create it.");
     goto end;
   }
   table= tables.table;
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc
index 77bfba5ba284e326c2709fe7d452551496dfc30c..5d73c1392793a7c9076c1db9c6c9e07448b0f39a 100644
--- a/sql/sql_udf.cc
+++ b/sql/sql_udf.cc
@@ -146,7 +146,7 @@ void udf_init()
   if (simple_open_n_lock_tables(new_thd, &tables))
   {
     DBUG_PRINT("error",("Can't open udf table"));
-    sql_print_error("Can't open the mysql.func table. Please run the mysql_install_db script to create it.");
+    sql_print_error("Can't open the mysql.func table. Please run the mysql_upgrade script to create it.");
     goto end;
   }