par Aaron Alcock.
UPDATE {3} SET username = REPLACE(username, ?, ?) [array ( 0 => 'moodle.domainname.com.au', 1 => 'moodlehigh.domainname.com.au', )]
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', )]
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
[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?