Details
- 
    Type:Bug 
- 
    Status: Closed
- 
    Priority:Minor 
- 
    Resolution: Fixed
- 
    Affects Version/s: Mercury
- 
    Fix Version/s: Mercury
- 
    Component/s: Database/Schema
- 
    Labels:None
- 
    Environment:AML Core 412 - mysql-5-5-46-upgrade 
- 
        Sprint:Sprint 13
Description
The create-all-aml.sh script throws error by referring to 'targetting' DB before it gets created.
Steps:
On a fresh mysql-server create-all-aml.sh is run.
The following error is seen.
Setting up databases:  bing content_editor_google spike_v2 st-tracker sync_google targeting
Verifying presence of tsacommon database ...
Creating database users and applying grants.
account-shard/permissions/pre/spike.sql
ERROR 1049 (42000): Unknown database 'targeting'
Error running pre permissions script - account-shard/permissions/pre/spike.sql
Attached is the entire log