Comments (6)
Some further commentary:
mysql2
, the library you use to connect to MySQL, supports socket-based connections like this...
conn = mysql.createConnection({socketPath: '/var/run/mysqld/mysqld.sock', user: 'root'})
... but obviously you'd need to run that from within a process that's running as root, which seems awkward since you deliberately don't allow ghost install
to be run as root.
Maybe the best approach here is to run the commands to create the Ghost user via the shell using your ui.sudo
function, only when the host is localhost
, the user is root
, password auth has failed, and a Ghost user needs creating? I'm not sure if I'm overcomplicating things here and the better solution is just a docs changing telling the user to give root
a password...
from ghost-cli.
Also ran into this error when using Digital Oceans 1-click droplet. Most of what you said above went straight over my head. Is there a quick fix before someone looks at the bug?
from ghost-cli.
@carrickspeirs yes - see the instructions in the quote block that I suggest adding to the docs. Basically the fix is:
- Run
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'somepassword';
- Enter
somepassword
as the root password when installing Ghost
It's unfortunate we have to do this, though, because it weakens the security of our MySQL install a bit.
from ghost-cli.
You're right, our docs need work here. We should be able to tidy these up next week π
from ghost-cli.
Related Issues (20)
- Message: Command failed: yarn install --no-emoji --no-progress HOT 4
- Ghost instances not starting up: They get stuck at "Starting Ghost: HOT 1
- ghost cli config help ambiguity HOT 1
- ghost-cli complains about systemd files corrupted, then about "ghost" user not created when recreating them HOT 1
- Handle email sending failures during setup more cleanly HOT 2
- Ghost install did not create system/nginx-root folder HOT 1
- Command failed: yarn install --no-emoji --no-progress HOT 1
- Create users from client HOT 2
- Access denied for user 'root'@'localhost' HOT 5
- installation fails with success message - database empty HOT 4
- Installation Issues - Blinking at Step 4 & 5 HOT 3
- The underlying principle of Ghost-CLI HOT 1
- The way ghost doctor checks permissions could be improved HOT 1
- Systemd _precheck() code could be improved HOT 1
- Ghost install thinks itβs running in a non interactive shell HOT 6
- latest ghost-cli start crashing on freebsd stable/14 HOT 5
- Change font HOT 1
- Faulty ghost install from ghost install/update --archive or --zip HOT 3
- Local Ghost Installation Permission Issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghost-cli.