【发布时间】:2019-08-20 11:58:23
【问题描述】:
我正在我的 ubuntu 18.04 Lts 中安装 Erpnext。我想知道如何为 MySql root 用户设置密码。
我正在我的 ubuntu 18.04 LTS 中安装 erpnext。在运行命令 - 'sudo bench new-site site4.local' 以创建新的 frappe 站点时,它要求 - 'MySQL root 密码':
我试过了-sudo mysql --user=root mysql' but it is giving output as- mysql: unknown variable 'pid-file=/var/run/mysqld/mysqld.pid
pymysql.err.InternalError: (1698, "Access denied for user 'root'@'localhost'")
【问题讨论】:
-
我想你会在这里找到一个密码参数:
sudo cat /etc/mysql/debian.cnf -
输出为 -> cat: –: No such file or directory.
-
我的配置文件的路径如下-sudo cat /etc/mysql/my.cnf
-
这里如何设置root密码?
-
编辑此文件并在密码变量中设置您想要的密码
标签: python mysql mariadb erpnext