Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
460 views
in Technique[技术] by (71.8m points)

mysql - 无法启动mysql? 不知道从哪里开始(Unable to start mysql? Not sure where to start)

I know that mysql is installed:

(我知道已安装mysql:)

mysql --version

And I get:

(我得到:)

Ver 8.0.18 for osx10.13 on x86_64 (Homebrew)

However, I can't seem to connect my Laravel app to the database.

(但是,我似乎无法将Laravel应用程序连接到数据库。)

Here is the error I get in trying to start mysql:

(这是我尝试启动mysql时遇到的错误:)

service mysql start

And, the error is:

(并且,错误是:)

zsh: command not found: service

Any idea how to problem solve this?

(任何想法如何解决这个问题?)

Thanks

(谢谢)

  ask by henry translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try This For Start MySQL:

(尝试以下方法以启动MySQL:)

ubuntu:

(ubuntu:)

sudo /etc/init.d/mysql start

macos:

(苹果系统:)

sudo /usr/local/mysql/support-files/mysql.server start

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...