Commit b84e5a4e authored by Sergei Golubchik's avatar Sergei Golubchik

fix debian/ubuntu startup scripts

parent 3f129034
...@@ -98,7 +98,7 @@ Architecture: any ...@@ -98,7 +98,7 @@ Architecture: any
Depends: mariadb-common, libmariadbclient18 (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends} Depends: mariadb-common, libmariadbclient18 (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
Provides: mysql-client-core, mysql-client-core-5.1, mysql-client-core-10.0 Provides: mysql-client-core, mysql-client-core-5.1, mysql-client-core-10.0
Conflicts: mysql-client (<< 5.0.51), mysql-client-5.0, Conflicts: mysql-client (<< 5.0.51), mysql-client-5.0,
mysql-client-5.1, mysql-client-5.5, mysql-client-5.1 (<< ${source:Version}), mysql-client-5.5 (<< ${source:Version}),
mysql-client-core-5.1, mysql-client-core-5.5, mysql-client-core-5.1, mysql-client-core-5.5,
mariadb-client-5.1, mariadb-client-core-5.1, mariadb-client-5.1, mariadb-client-core-5.1,
mariadb-client-5.2, mariadb-client-core-5.2, mariadb-client-5.2, mariadb-client-core-5.2,
......
...@@ -191,10 +191,10 @@ EOF ...@@ -191,10 +191,10 @@ EOF
# update privilege tables # update privilege tables
password_column_fix_query=`/bin/echo -e \ password_column_fix_query=`/bin/echo -e \
"USE mysql\n" \ "USE mysql;\n" \
"ALTER TABLE user CHANGE Password Password char(41) character set latin1 collate latin1_bin DEFAULT '' NOT NULL"`; "ALTER TABLE user CHANGE Password Password char(41) character set latin1 collate latin1_bin DEFAULT '' NOT NULL;"`
replace_query=`/bin/echo -e \ replace_query=`/bin/echo -e \
"USE mysql\n" \ "USE mysql;\n" \
"SET sql_mode='';\n" \ "SET sql_mode='';\n" \
"REPLACE INTO user SET " \ "REPLACE INTO user SET " \
" host='localhost', user='debian-sys-maint', password=password('$pass'), " \ " host='localhost', user='debian-sys-maint', password=password('$pass'), " \
......
...@@ -192,10 +192,10 @@ EOF ...@@ -192,10 +192,10 @@ EOF
# update privilege tables # update privilege tables
password_column_fix_query=`/bin/echo -e \ password_column_fix_query=`/bin/echo -e \
"USE mysql\n" \ "USE mysql;\n" \
"ALTER TABLE user CHANGE Password Password char(41) character set latin1 collate latin1_bin DEFAULT '' NOT NULL"`; "ALTER TABLE user CHANGE Password Password char(41) character set latin1 collate latin1_bin DEFAULT '' NOT NULL;"`
replace_query=`/bin/echo -e \ replace_query=`/bin/echo -e \
"USE mysql\n" \ "USE mysql;\n" \
"SET sql_mode='';\n" \ "SET sql_mode='';\n" \
"REPLACE INTO user SET " \ "REPLACE INTO user SET " \
" host='localhost', user='debian-sys-maint', password=password('$pass'), " \ " host='localhost', user='debian-sys-maint', password=password('$pass'), " \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment