Database Command Generator
Generate ready-to-use SQL commands and connection strings for database administration. Switch between Commands and Connection String modes. The Commands tab produces version-specific SQL for creating databases, managing users, and configuring privileges. The Connection String tab generates properly formatted connection URLs for your application code. Supports MySQL, PostgreSQL, MariaDB, SQL Server, and SQLite.
MySQL 8.0 defaults to utf8mb4 with the more accurate 0900_ai_ci collation. Older collations like general_ci are still supported.
Generated SQL
CREATE DATABASE `my_database` DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_0900_ai_ci;