Cannot Install / Use MySQL on Amazon Cloud9 Free A

2019-08-21 10:03发布

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.

I think Amazon Cloud9 may have changed their rules regarding free accounts. Please, advise what to do.

1条回答
三岁会撩人
2楼-- · 2019-08-21 10:32

These are the commands that you need. Write them to terminal.

sudo service mysqld start
sudo mysql_secure_installation

To run MySQL Shell:

mysql -uroot -p

To stop the service:

sudo service mysqld stop
查看更多
登录 后发表回答