# Script PowerShell para configurar o banco de dadosWrite-Host ""Write-Host "========================================" -ForegroundColor Cyan  Write-Host " Configuracao do Banco de Dados" -ForegroundColor CyanWrite-Host "========================================" -ForegroundColor CyanWrite-Host ""$dbHost = "127.0.0.1"$dbUser = "root"$dbPass = "@Ntonio010111"Write-Host "Verificando MySQL..." -ForegroundColor Yellow# Locais comuns do MySQL$paths = @(    "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql.exe",    "C:\Program Files\MySQL\MySQL Server 8.3\bin\mysql.exe",    "C:\xampp\mysql\bin\mysql.exe")$mysqlExe = $nullforeach ($p in $paths) {    if (Test-Path $p) {        $mysqlExe = $p        break    }}if ($mysqlExe) {    Write-Host "MySQL encontrado!" -ForegroundColor Green    Write-Host "Criando banco..." -ForegroundColor Yellow        $cmd = "CREATE DATABASE IF NOT EXISTS mapa CHARACTER SET utf8mb4;"    & $mysqlExe -h $dbHost -u $dbUser -p$dbPass -e $cmd        Write-Host "Sucesso! Agora execute: npm start" -ForegroundColor Green}else {    Write-Host "MySQL nao encontrado" -ForegroundColor Red    Write-Host ""    Write-Host "Crie o banco manualmente:" -ForegroundColor Yellow    Write-Host "1. Abra MySQL Workbench" -ForegroundColor White    Write-Host "2. Execute o arquivo database.sql" -ForegroundColor White}Write-Host ""Read-Host "Pressione Enter para continuar"