ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Bad Characters After a MySQL WordPress Migration

    IT Discussion
    mysql aso asmallorange mariadb wordpress
    5
    14
    3.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      I just did a database migration. Leaving MySQL using mysqldump to dump out the database. I'm moving from a self hosting CentOS 6 system and going to A Small Orange. I am importing the database into MariaDB (what ASO uses) using PHPMyAdmin via cPanel. Everything goes fine and the whole site fires up instantly once migrated. No issues.

      Here is the one thing that has gotten me. There are extra characters all over the place. This has to be something to do with the character encoding from the database dumps is all that I can guess. But I am not sure what change to make to fix it.

      Here is an example: "up today.Â" That last character should not be there. But it is displayed when looking at the WordPress site.

      thanksajdotcomT 1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller
        last edited by

        I should mention that the system exporting is using Latin1.

        1 Reply Last reply Reply Quote 1
        • thanksajdotcomT
          thanksajdotcom @scottalanmiller
          last edited by

          @scottalanmiller said:

          I just did a database migration. Leaving MySQL using mysqldump to dump out the database. I'm moving from a self hosting CentOS 6 system and going to A Small Orange. I am importing the database into MariaDB (what ASO uses) using PHPMyAdmin via cPanel. Everything goes fine and the whole site fires up instantly once migrated. No issues.

          Here is the one thing that has gotten me. There are extra characters all over the place. This has to be something to do with the character encoding from the database dumps is all that I can guess. But I am not sure what change to make to fix it.

          Here is an example: "up today.Â" That last character should not be there. But it is displayed when looking at the WordPress site.

          Can you get CLI access to the server?

          mysql -u your_username --password=your_password database_name < /path/to/dump.sql
          

          Make sure your SQL permissions match the source and your username and password match.

          1 Reply Last reply Reply Quote 0
          • DanpD
            Danp
            last edited by

            Maybe this?

            scottalanmillerS 2 Replies Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              The import is working fine. It's the character encoding that seems to be catching me.

              I've tried importing as UTF-8 and as Latin1 and both do the same thing.

              1 Reply Last reply Reply Quote 0
              • thanksajdotcomT
                thanksajdotcom
                last edited by

                Font issue maybe?

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • thanksajdotcomT
                  thanksajdotcom
                  last edited by

                  When printers print funky characters, it's always because the driver can't read the font being used. Could this be something similar?

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @Danp
                    last edited by

                    @Danp said:

                    Maybe this?

                    Looks like that will do it. That fits what I felt that the issue was and what I am seeing. Will look into that thoroughly after dinner.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @thanksajdotcom
                      last edited by

                      @thanksajdotcom said:

                      Font issue maybe?

                      Not likely. Font has not changed.

                      1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @Danp
                        last edited by

                        @Danp said:

                        Maybe this?

                        BOOM! Fixed!!

                        Thanks. Best Answer for you!

                        DanpD 1 Reply Last reply Reply Quote 0
                        • tonyshowoffT
                          tonyshowoff
                          last edited by

                          Using anything but UTF-8 is a crime!

                          JaredBuschJ 1 Reply Last reply Reply Quote 0
                          • DanpD
                            Danp @scottalanmiller
                            last edited by

                            @scottalanmiller Glad you were able to get it working correctly!

                            1 Reply Last reply Reply Quote 1
                            • JaredBuschJ
                              JaredBusch @tonyshowoff
                              last edited by

                              @tonyshowoff said:

                              Using anything but UTF-8 is a crime!

                              True, and even old WP installs used it without the actually making sure the DB was configured that way. So odd.

                              tonyshowoffT 1 Reply Last reply Reply Quote 1
                              • tonyshowoffT
                                tonyshowoff @JaredBusch
                                last edited by

                                @JaredBusch said:

                                @tonyshowoff said:

                                Using anything but UTF-8 is a crime!

                                True, and even old WP installs used it without the actually making sure the DB was configured that way. So odd.

                                That kind of ineptitude seems par for the course for WordPress. UTF-8 issues can't be blamed just on them though, consider the absolutely bizarre issue of utf8 vs utf8mb4 for MySQL, why the hell wasn't it implemented completely the first time?

                                1 Reply Last reply Reply Quote 1
                                • 1 / 1
                                • First post
                                  Last post