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

Re: error upgrading from moodle 1.9 - 2.0

$
0
0
by Guillermo Madero S..  

Lucky you it was only one course!

That collation problem is another issue and you create a new post. I'll answer it here for the time being.

The following three SQL statements are to set the character set (must be utf8) and collation (could be ut8_unicode_ci, slower but more precise; or ut8_general_ci, faster but less precise) for 1) the database 2) a table 3) a column in a table.

ALTER DATABASE database_name DEFAULT CHARACTER SET utf8 COLLATE new_collation

ALTER TABLE table_name DEFAULT CHARACTER SET utf8 COLLATE new_collation

ALTER TABLE table_name MODIFY column_namecolumn_type CHARACTER SET utf8 COLLATE new_collation

In phpMyAdmin check what collation is using your db, your tables and the text-type columns of each table, and use the previous statements to fix them as needed.

Another, easier and faster option, is to use the mysql_collation.php script included in Moodle 2.2 (not sure if also in M 2.1) under the moodle/admin/cli path. You could download a M 2.2 package, uncompress it, put that script in your own installation (your-moodle-directory/admin/cli) and run it via shell access (see the script).

--- edit

Here it is:

https://github.com/moodle/moodle/blob/master/admin/cli/mysql_collation.php


Viewing all articles
Browse latest Browse all 46796

Trending Articles



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