# Collation and charset set suddenly don't match

**URL:** <https://forums.concretecms.org/t/collation-and-charset-set-suddenly-dont-match/3826>\
**Category:** Using Concrete / Help\
**Created:** [August 23, 2022, 12:10am UTC](https://forums.concretecms.org/t/collation-and-charset-set-suddenly-dont-match/3826 "2022-08-23T00:10:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baxterdmutt](https://forums.concretecms.org/user_avatar/forums.concretecms.org/baxterdmutt/32/5178_2.png) [@baxterdmutt](https://forums.concretecms.org/u/baxterdmutt)\
**Post date:** [August 23, 2022, 12:10am UTC](https://forums.concretecms.org/t/collation-and-charset-set-suddenly-dont-match/3826/1 "2022-08-23T00:10:53Z")

</div>

I’m using Concrete 8.5.4 and everything has worked beautifully for a very long time. Yesterday while trying to add a form to a new page, It failed with this error. I have no idea how to fix this. Please help:

> An exception occurred while executing ‘CREATE TABLE TestExpressSearchIndexAttributes (exEntryID INT NOT NULL, PRIMARY KEY(exEntryID)) DEFAULT CHARACTER SET utf8 COLLATE utf8mb4\_unicode\_ci ENGINE = InnoDB’:
> 
> SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION ‘utf8mb4\_unicode\_ci’ is not valid for CHARACTER SET ‘utf8’

database.php has the character set as utf8mb4

---

<div class="post-metadata">

**Author:** ![baxterdmutt](https://forums.concretecms.org/user_avatar/forums.concretecms.org/baxterdmutt/32/5178_2.png) [@baxterdmutt](https://forums.concretecms.org/u/baxterdmutt)\
**Post date:** [August 23, 2022, 3:10am UTC](https://forums.concretecms.org/t/collation-and-charset-set-suddenly-dont-match/3826/2 "2022-08-23T03:10:56Z")

</div>

Ok, I fixed it. it was the database.php file and for some reason it was in 2 places. But here is the weird thing. It’s been like that for 2 years. Never been a problem before. MariaDB must have done something to make it strict.

---

<div class="post-metadata">

**Author:** ![EvanCooper](https://forums.concretecms.org/user_avatar/forums.concretecms.org/evancooper/32/4597_2.png) [@EvanCooper](https://forums.concretecms.org/u/EvanCooper)\
**Post date:** [August 31, 2022, 11:01pm UTC](https://forums.concretecms.org/t/collation-and-charset-set-suddenly-dont-match/3826/3 "2022-08-31T23:01:46Z")

</div>

@baxterdmutt strange, glad you got it sorted though!
