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.

MySQL install was not found or is stopped

See original GitHub issue

Summary

ghost doctor command is giving below warning/error

✔ Checking system Node.js version ✔ Checking logged in user ✔ Ensuring user is not logged in as ghost user ✔ Checking if logged in user is directory owner ✔ Checking current folder permissions ✔ Checking system compatibility Local MySQL install was not found or is stopped. You can ignore this if you are using a remote MySQL host. Alternatively you could: a) install/start MySQL locally b) run ghost install --db=sqlite3 to use sqlite c) run ghost install local to get a development install using sqlite3. ? Continue anyway? Yes MySQL check skipped ! Checking for a MySQL installation [skipped] sudo systemctl is-active ghost_www-sitename-com ? Sudo Password [hidden] Instance is currently running ! Validating config [skipped] ✔ Checking folder permissions ✔ Checking file permissions ✔ Checking content folder ownership ✔ Checking memory availability ✔ Checking binary dependencies ✔ Checking free space

Steps to Reproduce

  1. Upgrade Ghost, Ghost-CLI, Node to recommended v14 and NPM to latest version
  2. Use ghost doctor

Ghost is running in production mode and is running fine with ghost start. However ghost doctor is still throwing above MySQL install was not found or is stopped warning/error.

Technical details

This is automatically output by Ghost-CLI if an error occurs, please copy & paste:

  • OS: Ubuntu, v20.04.2 LTS
  • Node Version: v14.16.1
  • Ghost-CLI Version: 1.16.3
  • Environment: production
  • Command: ghost doctor

Bug submission checklist

Please fill out this checklist to acknowledge that you followed the requirements to submit a bug report.

  • Tried to find help in the forum & docs
  • Checked for existing issues
  • Attached log file
  • Provided technical details incl. operating system

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Catreinacommented, Dec 5, 2021

I don’t know if this will help anyone, but I went and modified the current ghost-cli/lib/commands/doctor/checks/mysql.js file on my own system (Ghost v4.25.1, fresh install, Ubuntu 20.04.3, Node v16.13.1, Ghost-CLI 1.18.1) to add a mariadb check after the mysql check. It seemed to me to be the quickest and cleanest change to make a mariadb check work on Ubuntu 20.04. I am not a programmer by any stretch, but it -does- work for me for now, so here you go:

this goes immediately after the “async function mysqlIsRunning()” code block:

async function mariadbIsRunning() {
    try {
        const services = await sysinfo.services('mariadb');
        return services.some(s => s.name === 'mariadb' && s.running);
    } catch (error) {
        return false;
    }
}

and this goes directly into the “async function mysqlCheck(ctx, task)” block. after the “if (await mysqlIsRunning())” block:

if (await mariadbIsRunning()) {
    // MariaDB service found that is also running, so return (instead of mysql)
    return;
}

This way when the mysql check fails, it checks for mariadb. Only if that one ALSO fails will the “Local MySQL install was not found” show. YMMV

0reactions
ErisDScommented, Jan 20, 2022

Closing this as a duplicate of https://github.com/TryGhost/Ghost-CLI/issues/460

Read more comments on GitHub >

github_iconTop Results From Across the Web

5.5 Troubleshooting a Microsoft Windows MySQL Server ...
This situation can occur when MySQL is upgraded and installed to a new location, but the configuration file is not updated to reflect...
Read more >
Fix MySQL 'Command Not Found' Error in Windows
It indicates that your system was not able to start the MySQL service because it was not able to find the executable file....
Read more >
mysql installer did not find packages in the current bundle ...
Run the msi installer · Next (Even it wouldn't work) · Go to below path instead. C:\ProgramData\MySQL\MySQL Installer for Windows\Product Cache.
Read more >
Windows - MySQL Installation Failures - Knowledgebase
MySQL Basic Installation · Remove MySQL Components. Uninstall all present MySQL components on the system via the Control Panel's Programs and Features menu....
Read more >
Mysql not showing in services solved - YouTube
How to solve mysql workbench not showing or missing in services in windows 10 is shown in this video.
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