question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Replace sqlite3 with mysql on local development

See original GitHub issue

Many of us suffering sqlite3 installation on local envoriment so here is a quick solution to replace sqlite3 with mysql. Here’s what i did:

  1. Installed mariadb and started. I created a database and assigned a user in it with all grants.
  2. npm install ghost-cli@latest -g
  3. 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
acburdinecommented, Jan 11, 2021

@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.

0reactions
acburdinecommented, Jan 26, 2021

@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 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found