Create MySQL database after MySQL service be started!

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE 2016-03-07 15:31:28 +01:00
parent 70bd0c1c84
commit 65c57f0ac5

View File

@ -169,21 +169,6 @@ install:
}
}
# -------------------------------------------------------------------------------------------
# MySQL
- ps: |
if ($env:platform -eq "Win32")
{
$env:PATH = "C:\mysql-5.7.9-win32\bin;" + $env:PATH
}
if ($env:platform -eq "x64")
{
$env:PATH = "C:\Program Files\MySql\MySQL Server 5.6\bin;" + $env:PATH
}
$env:MYSQL_PWD="Password12!"
$cmd = 'mysql -e "create database pocotestdb;" --user=root';
iex "& $cmd"
# -------------------------------------------------------------------------------------------
before_build:
@ -226,12 +211,19 @@ before_build:
{
$env:INCLUDE = "C:\mysql-5.7.9-win32\include;" + $env:INCLUDE
$env:LIB = "C:\mysql-5.7.9-win32\lib;" + $env:LIB
$env:PATH = "C:\mysql-5.7.9-win32\bin;" + $env:PATH
}
if ($env:platform -eq "x64")
{
$env:INCLUDE = "C:\Program Files\MySql\MySQL Server 5.6\include;" + $env:INCLUDE
$env:LIB = "C:\Program Files\MySql\MySQL Server 5.6\lib;" + $env:LIB
$env:PATH = "C:\Program Files\MySql\MySQL Server 5.6\bin;" + $env:PATH
}
$env:MYSQL_PWD="Password12!"
$cmd = 'mysql -e "create database pocotestdb;" --user=root';
iex "& $cmd"
# -------------------------------------------------------------------------------------------
# -------------------------------------------------------------------------------------------
# PostgreSQL