You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .travis/initializedb.sh
+35-40
Original file line number
Diff line number
Diff line change
@@ -7,47 +7,42 @@ set -v
7
7
8
8
if [ !-z"${DB}" ];then
9
9
# disable existing database server in case of accidential connection
10
-
mysql -u root -e 'drop user travis@localhost; drop user root@localhost; drop user travis; create user super@localhost; grant all on *.* to super@localhost with grant option'
11
-
mysql -u super -e 'drop user root'
12
-
13
-
F=mysql-${DB}-linux-glibc2.12-x86_64
14
-
mkdir -p ${HOME}/mysql
15
-
P=${HOME}/mysql/${F}
16
-
if [ !-d"${P}" ];then
17
-
wget https://cdn.mysql.com//Downloads/MySQL-${DB%.*}/${F}.tar.gz -O - | tar -zxf - --directory=${HOME}/mysql
mysql -S /tmp/mysql.sock -u root -e "create user ${USER}@localhost; create user ${USER}@'%'; grant all on *.* to ${USER}@localhost WITH GRANT OPTION;grant all on *.* to ${USER}@'%' WITH GRANT OPTION;"
49
-
sed -e 's/3306/3307/g' -e 's:/var/run/mysqld/mysqld.sock:/tmp/mysql.sock:g' .travis/database.json > pymysql/tests/databases.json
0 commit comments