I am trying to connect to remote database server with phpadmin on my home system. My Server uses Mysql version 5.1.61 and this mysql version is very old for the new xampp phpadmin version. I am thinking to downgrade the phpadmin version in xammpp 5.6.8
But I am getting an error due to compatibility error.
Error:
SQL query: Edit Edit
SET CHARACTER SET 'utf8mb4';
MySQL said: Documentation
1115 - Unknown character set: 'utf8mb4'
"utf8mb4" is an extended character set used in Mysql 5.5.3 and higher. Try converting the DB to use utf8 only instead of utf8mb4.
Below URL might help.
http://ben.lobaugh.net/blog/201740/script-to-convert-mysql-collation-from-utf8mb4-to-utf8
Related
Is it safe to restore a dump taken from mysql 5.6 aws rds instance to mysql 8 aws rds instance? Is there any incompatibilities we should worry about?
Thank you.
I faced below problem when restoring a dump from MySQL 5.7.16 to MySQL 8.0.28-0ubuntu0.20.04.3
ERROR 1231 (42000) at line 45316: Variable 'sql_mode' can't be set to
the value of 'NO_AUTO_CREATE_USER'
The solution that I used ;
sed -i 's/NO_AUTO_CREATE_USER//' my_file.sql
Refrence
Maybe you might face another problem
You should read Server and Status Variables and Options Added, Deprecated, or Removed in MySQL 8.0
I'm developing my PHP apps on XAMMP on a usb stick, the character set is utf8_unicode_ci, when I exported the db and imported the SQL into my live server at OVH, it gave me this error:
1115 - Unknown character set: 'utf8mb4'
My XAMMP dev server DB version:
Server type: MariaDB
Server version: 10.1.13-MariaDB - mariadb.org binary distribution
My OVH live server version:
Server type: MySQL
Server version: 5.1.73 - Source distribution
No how to solve this? Thanks.
use my sql server 5.5.3 or newer, or replace all 'utf8mb4' to 'utf8' in your DB dump
I'm running ubuntu 14.04 and flyway doesn't seem to be able to read my UTF-8 encoded SQL script.
I can run the sql script by using the terminal command
mysql -u root -p my_db < v1_1__Test_migration_script.sql
But when flyway runs it, I get the error Incorrect string value: on the file that is UTF-8 encoded.
My system has LANG set as en_US.UTF-8
Note that when flyway runs during setup on my Mac OSX machine it all works fine.
The issue was that the database was using a different character set and collation.
A fix that worked for me was to specify it explicitly
CREATE DATABASE my_db DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
I know that many had this problem, and solved it, but even with their solutions, I've gotten no luck..
I tried exporting my localhost phpadmin to my webserver, and i got:
SQL query:
/*!40101 SET NAMES utf8mb4 */;
MySQL said: Documentation
#1115 - Unknown character set: 'utf8mb4'
Local phpmyadmin:
Server type: MariaDB
Server charset: UTF-8 Unicode (utf8)
Version: 4.5.2
Webhost phpmyadmin:
Version: 2.11.4
Solved it. Downloaded MYSQL workbench, logged into my local database, and exported it from the program. Then, i simply imported the file, and it worked!
For some reason I can't launch pHp myadmin from XAMPP, I've tried different versions uninstalling and re installing wont launch. Give me the following error..
Error
SQL query: Edit Edit
SET CHARACTER SET 'utf8mb4';
MySQL said: Documentation
#1115 - Unknown character set: 'utf8mb4'
Any idea? Cheers
Your version of MySQL is too old for your version of phpMyAdmin. See the release history for phpMyAdmin version 4.2.3.
Either upgrade MySQL or downgrade phpMyAdmin.
Replacing utf8mb4 with utf8 should work.
utf8mb4 is a superset of utf8.