Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 680777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:24:36+00:00 2026-05-14T01:24:36+00:00

I have two physically-separate MySQL databases on which I have to run a single

  • 0

I have two physically-separate MySQL databases on which I have to run a single query.

The query has a section of SQL that looks like this:

and foo_table.bar_column like concat('%', rules.pattern, '%') COLLATE utf8_general_ci

It runs fine on database A but on database B I get this error:

ERROR 1253 (42000): COLLATION 'utf8_general_ci' is not valid for CHARACTER SET 'latin1'

If I remove the collation it runs fine on database B but on database A I get this error:

ERROR 1267 (HY000): Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'like'

Is there a version of the query that will run on both databases?

Or, is there a configuration I can change on either database to make the query happy in both places?

Update:

Database A is version 5.1.38,
Database B is version 5.1.34

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:24:37+00:00Added an answer on May 14, 2026 at 1:24 am

    Some promising information here.

    UPDATE: the suggestions in that link solved my problem, although the syntax is a little out of date and you don’t have to convert each column anymore, just the table.

    ALTER TABLE the_latin_one CONVERT TO CHARACTER SET utf8;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 347k
  • Answers 347k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Nope, not that I can see. NtQueryInformationProcess isn't going away… May 14, 2026 at 6:25 am
  • Editorial Team
    Editorial Team added an answer Best practices from google and yahoo say that, for performance,… May 14, 2026 at 6:25 am
  • Editorial Team
    Editorial Team added an answer Just to be clear, $("#details").html(data) loads the "a" tags right?… May 14, 2026 at 6:25 am

Related Questions

Lets say I have two separate databases, X and Y, on the same physical
I'm new to WCF. Let's say I have two asp.net apps, one that uses
If there was a line of business application layered like this, would this be
I have two separate installs of WebSphere. (Actually one is WebSphere Application Server V6.1
I've looked at a lot of posts on different forums where others have received

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.