unable to connect to mysql while install edx confi

TASK: [edxlocal | create a database for edxapp] ******************************* 
failed: [localhost] => {"failed": true, "item": ""}
msg: unable to connect, check login_user and login_password are correct, or alternatively check ~/.my.cnf contains credentials

FATAL: all hosts have already failed -- aborting


解决:1.开启MYSQL

2.

 

The method you were using suppose to work in a freshly installed Ubuntu server. It also meant that you'd already installed mysql in your server. So, to fix this issue, create this file /root/.my.cnf with the following content:

[client]
user=root
password=<your root pass>

[mysql]
user=root
password=<your root pass>

[mysqldump]
user=root
password=<your root pass>

[mysqldiff]
user=root
password=<your root pass>

Run the command again, It should work.


你可能感兴趣的:(unable to connect to mysql while install edx confi)