File tree Expand file tree Collapse file tree 6 files changed +8
-19
lines changed Expand file tree Collapse file tree 6 files changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ MySQLDump-PHP is the only library that supports:
2727* dumps events.
2828* does extended-insert and/or complete-insert.
2929* supports virtual columns from MySQL 5.7.
30+ * does insert-ignore, like a REPLACE but ignoring errors if a duplicate key exists.
3031
3132## Important
3233
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ mysql -u root -e "CREATE DATABASE test009;"
1111mysql -u root -e " CREATE DATABASE test010;"
1212mysql -u root -e " CREATE DATABASE test011;"
1313mysql -u root -e " CREATE DATABASE test012;"
14- mysql -u root -e " CREATE DATABASE test013;"
1514mysql -u root -e " GRANT ALL PRIVILEGES ON test001.* TO 'travis'@'%' WITH GRANT OPTION;"
1615mysql -u root -e " GRANT ALL PRIVILEGES ON test002.* TO 'travis'@'%' WITH GRANT OPTION;"
1716mysql -u root -e " GRANT ALL PRIVILEGES ON test005.* TO 'travis'@'%' WITH GRANT OPTION;"
@@ -22,7 +21,6 @@ mysql -u root -e "GRANT ALL PRIVILEGES ON test009.* TO 'travis'@'%' WITH GRANT O
2221mysql -u root -e " GRANT ALL PRIVILEGES ON test010.* TO 'travis'@'%' WITH GRANT OPTION;"
2322mysql -u root -e " GRANT ALL PRIVILEGES ON test011.* TO 'travis'@'%' WITH GRANT OPTION;"
2423mysql -u root -e " GRANT ALL PRIVILEGES ON test012.* TO 'travis'@'%' WITH GRANT OPTION;"
25- mysql -u root -e " GRANT ALL PRIVILEGES ON test013.* TO 'travis'@'%' WITH GRANT OPTION;"
2624mysql -u root -e " GRANT SUPER,LOCK TABLES ON *.* TO 'travis'@'%';"
2725mysql -u root -e " GRANT SELECT ON mysql.proc to 'travis'@'%';"
2826mysql -u root -e " FLUSH PRIVILEGES;"
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ mysql -e "DROP DATABASE test009;"
1010mysql -e " DROP DATABASE test010;"
1111mysql -e " DROP DATABASE test011;"
1212mysql -e " DROP DATABASE test012;"
13- mysql -e " DROP DATABASE test013;"
1413
1514mysql -e " DROP USER 'travis'" ;
1615
Original file line number Diff line number Diff line change 135135
136136print "starting mysql-php_test013.sql " . PHP_EOL ;
137137$ dump = new IMysqldump \Mysqldump (
138- "mysql:unix_socket=/var/run/mysqld/mysqld.sock;dbname=test013 " ,
138+ "mysql:unix_socket=/var/run/mysqld/mysqld.sock;dbname=test001 " ,
139139 "travis " ,
140140 "" ,
141- array ("insert-ignore " => true ));
141+ array (
142+ "insert-ignore " => true ,
143+ "extended-insert " => false
144+ ));
142145$ dump ->start ("mysqldump-php_test013.sql " );
143146
144147exit (0 );
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ mysql -utravis < test009.src.sql; ret[((index++))]=$?
3333mysql -utravis < test010.src.sql; ret[(( index++ )) ]=$?
3434mysql -utravis < test011.src.sql; ret[(( index++ )) ]=$?
3535mysql -utravis < test012.src.sql; ret[(( index++ )) ]=$?
36- mysql -utravis < test013.src.sql; ret[(( index++ )) ]=$?
36+ # mysql -utravis < test013.src.sql; ret[((index++))]=$?
3737
3838checksum_test001 > test001.src.checksum
3939checksum_test002 > test002.src.checksum
@@ -70,7 +70,7 @@ mysqldump -utravis test012 \
7070 > mysqldump_test012.sql
7171ret[(( index++ )) ]=$?
7272
73- mysqldump -utravis test013 \
73+ mysqldump -utravis test001 \
7474 --no-autocommit \
7575 --extended-insert=false \
7676 --hex-blob=true \
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments