+ Reply to Thread
Results 1 to 3 of 3

Thread: Mahara MySQL UTF-8

  1. #1
    edcox8646 is offline x10Hosting Member edcox8646 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    3

    Question Mahara MySQL UTF-8

    Howdy,

    I'm trying to setup an e-portfolio for my students to use as a back up for their ICT coursework as the school servers aren't too reliable and don't offer the opportunity to access work off site.

    I think I've almost got Mahara set up but there seems to be a problem with the MySQL database.

    When I log on to my website ecox.x10.mx I get the following error message:

    You are not using a UTF-8 database. Mahara stores all data as UTF-8 internally. Please drop and re-create your database using UTF-8 encoding.
    I've gone in to phpMyAdmin and it says that it is using MySQL charset: UTF-8 Unicode (utf.

    I really am stumped and don't know what to do, if anyone has any ideas I'd really appreciate them.

    Many thanks,
    Ed

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Mahara MySQL UTF-8

    Where did you look in phpMyAdmin? You can set which character encoding MySQL uses for many things: for connections, the server, databases, tables and columns. Make sure you're checking the character encoding for the database (and tables, while you're at it). You can check the collation (hence encoding) from the "Operations" tab, or by executing the statement:
    Code:
    SELECT default_character_set_name FROM information_schema.schemata WHERE schema_name=?;
    where the ? is a stand-in for the database name.

    Changing the default collation for the database from the "Operations" tab should set the default encoding as well. You could also execute an ALTER DATABASE statement to set the encoding. Similarly, you can change the table default collation (and hence encoding) from the "Operations" tab, or with an ALTER TABLE statement.

    Note you should still be able to edit your post and disable smilies, so the "(utf" will show as "(utf8)".
    Last edited by misson; 07-28-2011 at 12:37 AM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    edcox8646 is offline x10Hosting Member edcox8646 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    3

    Re: Mahara MySQL UTF-8

    Brilliant thank you so much for this has worked a charm. Sorry for delay I've started back at work now so haven't had too much time to tinker.

    Thanks again!

    Cheers,
    Ed

+ Reply to Thread

Similar Threads

  1. Replies: 1
    Last Post: 10-15-2010, 01:46 PM
  2. Replies: 2
    Last Post: 10-14-2010, 10:49 AM
  3. Mahara
    By gparcforum in forum Free Hosting
    Replies: 0
    Last Post: 07-13-2010, 09:43 AM
  4. Replies: 2
    Last Post: 12-17-2007, 03:00 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers