我在Linux机器上运行MariaDB MySQL。当我试图在文档之后更改密码时,MySQL在启动时会给出以下错误:
2017-11-17 9:25:47 139640910462912 [Note] Server socket created on IP: '::'.
ERROR: 1064 You have an error in your SQL syntax; check the manual that corresponds
to your MariaDB server version for the right syntax to use near
我使用本指南中的cmd命令重置我的MySQL密码。
cd "C:\Program Files\MySQL\MySQL Server 8.0\bin"
mysqld
--defaults-file="C:\\ProgramData\\MySQL\\MySQL Server 8.0\\my.ini"
--init-file=C:\\Users\\<username>\\resetMYSQL.txt
resetMYSQL包含一个更改密码的命令。
ALTER USER 'root'@'localhost' IDENTIFIED
我想知道是否有人能帮我。
我已经对“密码重置”过程做了大量的研究,从我发现的一个教程中,我能够将下面的代码放在一起,从而提供了这个功能。
忘记密码
<?php
// Connect to MySQL
$c = mysql_connect("host", "user", "password");
mysql_select_db("database", $c);
// Was the form submitted?
if ($_POST["ForgotPasswordForm"])
{
// Harv