Managed MySQL for your Laravel app
MySQL 8.4 for your Laravel app, created by your coding agent or the terminal, backed up from the first minute.
Ask your agent
Create a MySQL database for this Laravel app on Rowsafe Cloud.Your agent picks a size, tells you the price and waits for your yes, then creates the server as you. Once it's ready (5 to 10 minutes), click Create database and user on its page in the dashboard: you see the connection details once, for your .env.
First time? Connect Rowsafe to your agent once.
Or from the terminal
rowsafe cloud create shop-db --engine mysql --wait
rowsafe db create shop --on shop-dbrowsafe cloud create shows the price and asks first. rowsafe db create makes the database and its own user, and prints the connection string once: Rowsafe can't show it again. (rowsafe env is for PostgreSQL only, for now.)
Connect your app
DB_CONNECTION=mysql
DB_URL=mysql://shop:[email protected]:3306/shop?ssl-mode=REQUIRED
# Check the server's certificate (on macOS: /etc/ssl/cert.pem)
MYSQL_ATTR_SSL_CA=/etc/ssl/certs/ca-certificates.crtLaravel's own config/database.php reads all three, so there's nothing else to change. With MYSQL_ATTR_SSL_CA set, PHP checks the server's certificate. Then php artisan migrate.
Backups and restores
Rowsafe backs up every change, encrypted on the server with a key only you have, so you can restore to any second. Every week it restores a backup to prove it works. Restore a copy, bring back deleted rows or rewind the whole database, in one click. Before a risky change, save a Mark (rowsafe mark), or let your agent save one.
From $0.014 an hour, never more than $10 a month.
Questions
How does my app's server connect?
At first only your computer can. Add your server's address under Who can connect on the server's page, or run rowsafe cloud allow shop-db ADDRESS.
Can I use PostgreSQL or MariaDB instead?
Yes. Create the server with --engine mariadb, or leave --engine out for PostgreSQL and use rowsafe env. Laravel supports all three.
Why isn't AWS offered for MySQL?
MySQL runs on Intel and AMD only, and Rowsafe Cloud's AWS sizes are Arm. Every other cloud runs it.
More guides
- Add PostgreSQL to your Next.js appNext.js, node-postgres
- Managed PostgreSQL for your Django appDjango, psycopg
- Managed PostgreSQL for your Rails appRuby on Rails, pg
- PostgreSQL for your Express app, with PrismaNode.js, Express, Prisma
- PostgreSQL for your FastAPI app, with SQLAlchemyFastAPI, SQLAlchemy, psycopg
- PostgreSQL with pgvector for your AI apppgvector, any framework
- A Valkey (Redis) cache for your Next.js appNext.js, node-redis
- Meilisearch for your Laravel app, with ScoutLaravel Scout, Meilisearch
- Managed MariaDB for your WordPress siteWordPress, MariaDB 11.8