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
Related
When migrating a WordPress database to a new server it get the the error:
ERROR 1064 (42000) at line 194036: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'The dynamic response body size is over the limit, the response will be trunca' at line 413
I've tried both importing it in phpMyAdmin and also command line with the following command:
mysql -uroot -p******* sout_travel < yY8tB9M7SaUz2P.sql
I really don't know much about MySQL or MariaDB in this case. I'd appreciate if someone could shed a light...
Source Server Specs:
Server: Localhost via UNIX socket
Server type: MariaDB
Server connection: SSL is not being used Documentation
Server version: 10.1.44-MariaDB-0ubuntu0.18.04.1 - Ubuntu 18.04
Protocol version: 10
User: yY8tB9M7SaUz2P#localhost
Server charset: UTF-8 Unicode (utf8)
LiteSpeed
Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
PHP version: 7.0.33-13+bionic
Destination Server Specs:
Server: Localhost via UNIX socket
Server type: MariaDB
Server connection: SSL is not being used Documentation
Server version: 10.1.44-MariaDB-0ubuntu0.18.04.1 - Ubuntu 18.04
Protocol version: 10
User: root#localhost
Server charset: UTF-8 Unicode (utf8)
LiteSpeed
Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $
PHP extension: mysqli Documentation curl Documentation mbstring Documentation
PHP version: 7.2.30-1+bionic
Your SQL file (yY8tB9M7SaUz2P.sql) seems to be invalid. Open it with your favorite text editor and you'll probably find the text towards end of the file:
The dynamic response body size is over the limit, the response will be trunca
Sounds like the process that generates the .sql file for you is being interrupted and can't complete, thus leaving the file invalid. If I had to guess, and I have to, that's part of the error message explaining what's the issue generating the SQL file. Your problem isn't loading the SQL file, but generating it.
Can't find out what's the actual problem. i am using the below example which works fine in:
e.g:
select * from table where (( p1 = '' OR p2 = '') OR table_column BETWEEN p1 AND p2)
Server: Localhost via UNIX socket
Server type: MariaDB
Server version: 10.0.31-MariaDB-cll-lve - MariaDB Server
Protocol version: 10
Server charset: UTF-8 Unicode (utf8)
but when i run the same query on:
Server: Localhost via UNIX socket
Server type: MySQL
Server version: 5.6.37 - MySQL Community Server (GPL)
Protocol version: 10
Server charset: UTF-8 Unicode (utf8)
it doesn't work! Any help would be appreciated.
EDIT:
p1 and p2 are parameters with the datatype YEAR and query is in a procedure.
I am trying to add Arabic values in database . When I enter it in database it shows error
Warning: #1366 Incorrect string value: '\xD8\xA7\xD9\x84\xD9\x85...' for column 'a_name' at row 1" error
My phpmyadmin server info is
Server: 127.0.0.1 via TCP/IP
Server type: MySQL
Server version: 5.6.14 - MySQL Community Server (GPL)
Protocol version: 10
User: root#localhost
Server charset: UTF-8 Unicode (utf8)
For inserting Arabic text follow these steps
1) Go to that table structure
2) Click on change [Where you want to add the Arabic text]
3) Search for "Collation" and select "utf8_unicide_ci"
In this way you will be able to add the Arabic Inputs in database
Happy Coding
Cheers !!!!!
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!
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