Replace sqlite3 with mysql on local development
See original GitHub issueMany of us suffering sqlite3 installation on local envoriment so here is a quick solution to replace sqlite3 with mysql. Here’s what i did:
- Installed mariadb and started. I created a database and assigned a user in it with all grants.
- npm install ghost-cli@latest -g
- ghost install local
After 3rd step, I encountered usual sqlite3 error and could not start the ghost. Now go ahead the directory where you install ghost and locate the file config.development.json. Open the file and replace the database section with this.
In this example, i used ghostuser but you can choose anything you want.
"database": {
"client": "mysql",
"connection": {
"host": "localhost",
"user": "ghostuser",
"password": "ghostuser",
"database": "ghostuser",
"charset": "utf8"
}
Then i started the ghost with ghost start
and it worked.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Quick easy way to migrate SQLite3 to MySQL? [closed]
SQLite uses CREATE TABLE/INSERT INTO "table_name" and MySQL uses CREATE TABLE/INSERT INTO table_name · MySQL doesn't use quotes inside the schema ...
Read more >Replace sqlite3 with mysql on local development
Many of us suffering sqlite3 installation on local envoriment so here is a quick solution to replace sqlite3 with mysql. Here's what i...
Read more >Django: switch from sqlite3 to mysql
Django: switch from sqlite3 to mysql. #django. assume there is an existing sqlite3 db with data in django app. in command prompt:.
Read more >Web2py – Migrating from SQLite to MySQL
I recently needed to convert a web2py-based CRM app hosted on an Apache server with a SQLite backend to MySQL. Below are the...
Read more >Speeding up your development environment with SQLite
SQLite is a self-contained SQL database engine that significantly reduces the labor of setting up and maintaining databases in our ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@koraylinux another option for using local ghost with mysql is to run
ghost install local --db mysql
, which should add the automatic prompts for MySQL host, username, password, etc. 😄 Removes any need to manually edit configuration.@nkgst generally this means that you don’t have mysql installed locally - see here for instructions on how to install MySQL on Windows.
I’m closing this issue since there’s nothing to update on the CLI side. If you run into any more issues, please reach out on our forum 😄