Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 46994

Moodle 2.5.1 Migration

$
0
0
par Aaron Alcock.  

Have migrated Moodle to new server and attempted to adjust all url references with new name (changed name from moodle to moodlehigh) and receive this error:

 

Search and replace text throughout the whole database


UPDATE {3} SET username = REPLACE(username, ?, ?) [array ( 0 => 'moodle.domainname.com.au', 1 => 'moodlehigh.domainname.com.au', )]

Error writing to database

Debug info: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '3} SET username = REPLACE(username, 'moodle.domainname.com.au', 'moodlehigh.do' at line 1

UPDATE {3} SET username = REPLACE(username, ?, ?)
[array (
0 => 'moodle.domainname.com.au',
1 => 'moodlehigh.domainname.com.au'',
)]
Error code: dmlwriteexception
Stack trace:
  • line 426 of /lib/dml/moodle_database.php: dml_write_exception thrown
  • line 895 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 6787 of /lib/adminlib.php: call to mysqli_native_moodle_database->execute()
  • line 74 of /admin/tool/replace/index.php: call to db_replace()

 

Any Ideas?


Viewing all articles
Browse latest Browse all 46994

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>