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.
Related
this part off back-end code working in my local server fine !
but not work in remote(main) server !!!
my back-end error in main server:
{"status_code": 400, "description": "(pymysql.err.InternalError) (1525, \"Incorrect DATETIME value: '1399-02-30
'\")\n[SQL: SELECT count(*) AS count_1 \nFROM (SELECT discount.id AS discount_id, discount.user_id AS discount_user_id,
discount.s_time AS discount_s_time, discount.e_time AS discount_e_time, discount.code AS discount_code,
discount.percentage AS discount_percentage, discount.is_private AS discount_is_private \nFROM discount \nWHERE
discount.s_time < %(s_time_1)s AND discount.e_time>= %(e_time_1)s AND discount.code = %(code_1)s AND discount.user_id =
%(user_id_1)s) AS anon_1]\n[parameters: {'s_time_1': '1399-02-30 ', 'e_time_1': '1399-02-30 ', 'code_1': 'v',
'user_id_1': 81}]\n(Background on this error at: http://sqlalche.me/e/2j85)"}
local server:
system_time_zone
Iran Daylight Time
time_zone
SYSTEM
main server
system_time_zone 430
time_zone Asia/Tehran
local server info:
Database server
Server: MySQL (127.0.0.1 via TCP/IP)
Server type: MySQL
Server connection: SSL is not being used Documentation
Server version: 5.7.28 - MySQL Community Server (GPL)
Protocol version: 10
User: root#localhost
Server charset: cp1252 West European (latin1)
Web server
Apache/2.4.41 (Win32) PHP/7.4.0
Database client version: libmysql - mysqlnd 7.4.0
PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
PHP version: 7.4.0
my main server info :
Database server
Server: ------ via TCP/IP
Server type: MySQL
Server connection: SSL is not being used Documentation
Server version: 8.0.20 - MySQL Community Server - GPL
Protocol version: 10
User: root#172.17.0.1
Server charset: UTF-8 Unicode (utf8mb4)
Web server
Apache/2.4.38 (Debian)
Database client version: libmysql - mysqlnd 7.4.4
PHP extension: mysqli Documentation curl Documentation mbstring Documentation
PHP version: 7.4.4
Few days ago I have reinstalled my system and installed mariadb as default mysql server. And now i have noticed a problem - whenever I try to create a dump of any database - it is created without data. Inside of dump file most of tables does not have insert query with data and dump file is very small (below 1mb).
I have tried to create dump files in a few ways:
Phpmyadmin export
Command line mysqldump -u user -p databesaname > dumpfile.name
But result is the same. So is there a way to fix this without reinstalling mysql server? I dont want to lose all my databases.
Specifications:
Server: Localhost via UNIX socket
Server Type: MariaDB
Server version: 10.0.34-MariaDB-0ubuntu0.16.04.1 - Ubuntu 16.04
Apache/2.4.18 (Ubuntu)
Databesa client version : libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
PHP version: 7.0.30-0ubuntu0.16.04.1
Server type: MariaDB
Server version: 10.1.19-MariaDB - MariaDB Server
Apache/2.4.6 (Red Hat Enterprise Linux) PHP/7.0.10
Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: 241ae00989d1995ffcbbf63d579943635faf9972 $
All queries in phpMyAdmin work fine except for any DELETE query, I know they are correct because they work if I run them in a ssh terminal mysql client. But phpMyAdmin only shows "Loading...".
Anyone got a solution for this?
Best Regards
Cisco
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
After upgrade of apache version (5.6.12) to the latest mysql returns duplicate errors importing dump files.
The simple question is that how to export the mysql dump file that works in all php mysql and mysql.
Importing File to : Server version: 5.5.27 - MySQL Community Server (GPL).
Exporting File From : Server version: 5.5.44-37.3-log - Percona Server (GPL).
No Matter what your Server version is you can use
mysql shell
The command
mysql -uroot -ppass DATABASE_NAME < /your/path/to/dump.sql