我正在尝试创建一个BASH脚本,该脚本将生成一个命令来调用MariaDB监视器,即mysql。我希望此mysql命令包含--init-command选项。但是,如果我复制生成的命令,并将其粘贴回命令提示符,它将请求我的密码,并按照我的预期继续执行,如下所示: $ mysql -p -D information_schema --init-command=Your MariaDB connection id is 171
在安装MediaWiki时,试图将它绑定到mysql-server (安装的第二步),但得到了错误消息:
Cannot access the database: :real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES). Check the host, username and password and try again. If using "localhost" as the database host, try