无法在Amazon Cloud9免费帐户上安装/使用MySQL [英] Cannot Install / Use MySQL on Amazon Cloud9 Free Account
问题描述
我正在尝试在Amazon Cloud9的免费帐户上运行MySQL命令,但我无法使其正常运行。我已经尝试过在互联网上找到的所有命令,包括 mysql-ctl install
, mysql-ctl start
和 mysql-ctl cli
-所有这些都会导致令人沮丧的
I'm trying to run MySQL commands on a free account with Amazon Cloud9 and I cannot get it to work anyhow. I've tried all the commands I've found on the internet, including mysql-ctl install
, mysql-ctl start
and mysql-ctl cli
- all of them result in a discouraging bash: mysql-ctl: command not found
.
我认为Amazon Cloud9可能已经更改了有关免费帐户的规则。
I think Amazon Cloud9 may have changed their rules regarding free accounts. Please, advise what to do.
推荐答案
这些是您需要的命令。将它们写入终端。
These are the commands that you need. Write them to terminal.
sudo service mysqld start
sudo mysql_secure_installation
运行MySQL Shell:
To run MySQL Shell:
mysql -uroot -p
停止服务:
sudo service mysqld stop
这篇关于无法在Amazon Cloud9免费帐户上安装/使用MySQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!