mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-16 19:54:38 +01:00
Create MySQL database after MySQL service be started!
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
parent
70bd0c1c84
commit
65c57f0ac5
22
appveyor.yml
22
appveyor.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user