-- Source rm -rf 93988/ scripts/mysql_install_db --basedir=$PWD --datadir=$PWD/93988 -v bin/mysqld --no-defaults --basedir=$PWD --datadir=$PWD/93988 --core-file --socket=/tmp/mysql_56.sock --port=6666 --log-error=$PWD/93988/log.err --sql_mode='' 2>&1 & -- Target rm -rf 93988 bin/mysqld --initialize-insecure --basedir=$PWD --datadir=$PWD/93988 --log-error-verbosity=3 bin/mysqld --no-defaults --basedir=$PWD --datadir=$PWD/93988 --core-file --socket=/tmp/mysql_ushastry.sock --port=3333 --log-error=$PWD/93988/log.err --log-error-verbosity=3 --sql_mode='' 2>&1 & #### Source [umshastr@hod03]/export/umesh/server/binaries/GABuilds/mysql-5.6.26: bin/mysql -uroot -S /tmp/mysql_56.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.6.26 MySQL Community Server (GPL) Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> create user 'root'@'%'; Query OK, 0 rows affected (0.00 sec) mysql> grant all on *.* to 'root'@'%' WITH GRANT OPTION; Query OK, 0 rows affected (0.00 sec) mysql> \q Bye [umshastr@hod03]/export/umesh/server/binaries/GABuilds/mysql-5.6.26: bin/mysql -uroot -S /tmp/mysql_56.sock test < /tmp/blob.sql -- target [umshastr@hod03]/export/umesh/server/binaries/GABuilds/mysql-5.7.20: bin/mysql -uroot -S /tmp/mysql_ushastry.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.20 MySQL Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> create user 'root'@'%'; Query OK, 0 rows affected (0.01 sec) mysql> grant all on *.* to 'root'@'%' WITH GRANT OPTION; Query OK, 0 rows affected (0.00 sec) mysql> create database test; Query OK, 1 row affected (0.00 sec) mysql> -- mysqluc Launching console ... Welcome to the MySQL Utilities Client (mysqluc) version 1.6.5 Copyright (c) 2010, 2017 Oracle and/or its affiliates. All rights reserved. This is a release of dual licensed MySQL Utilities. For the avoidance of doubt, this particular copy of the software is released under the version 2 of the GNU General Public License. MySQL Utilities is brought to you by Oracle. Type 'help' for a list of commands or press TAB twice for list of utilities. mysqluc> mysqldbcopy --drop-first --not-null-blobs --source root@xx.xx.oracle.com:6666 --destination root@xx.xx.oracle.com:3333 test:test WARNING: Using a password on the command line interface can be insecure. WARNING: The following tables have blob fields set to NOT NULL. test.blob_table Column password_sha test.blob_table Column password # Source on xx.xx.oracle.com: ... connected. # Destination on xx.xx.oracle.com: ... connected. # Copying database test renamed as test # Copying TABLE test.blob_table # Copying GRANTS from test # Copying data for TABLE test.blob_table ERROR: Problem inserting data. Error = Query failed. 1048 (23000): Column 'password' cannot be null Execution of utility: 'mysqldbcopy --drop-first --not-null-blobs --source root@xx.xx.oracle.com:6666 --destination root@xx.xx.oracle.com:3333 test:test' ended with return cod e '1' but no error message was streamed to the standard error, please review the output from its execution. mysqluc> ## With sql_mode strict on 5.7 instance mysql> set global sql_mode=DEFAULT; Query OK, 0 rows affected (0.00 sec) mysql> show global variables like 'sql_mode'; +---------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | Variable_name | Value | +---------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | sql_mode | ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION | +---------------+-------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec)