exec($sql); echo "Database initialized successfully.\n"; } catch (Exception $e) { echo "Error initializing database: " . $e->getMessage() . "\n"; }