exec($command); } echo "Tables created successfully.\n"; } catch (PDOException $e) { die("Database setup failed: " . $e->getMessage()); }