search

Home  >  Q&A  >  body text

Solve the problem of "ALTER USER" SQL query in MariaDB

<p>I am trying to execute a command in mysql console. </p> <blockquote> <p>Change user "root"@"localhost" identified with mysql_native_password 'Password';</p> </blockquote> <p>But I got this error. </p> <blockquote> <p>There is an error in your SQL syntax; check the manual Corresponds to your MariaDB server version so that the correct syntax is used Line 1 near "BY 'pass'"</p> </blockquote> <p>Version: 10.3.22-MariaDB-1ubuntu1 Ubuntu 20.04</p>
P粉908138620P粉908138620462 days ago566

reply all(1)I'll reply

  • P粉012875927

    P粉0128759272023-08-27 00:14:04

    ALTER USER 'root'@'localhost' IDENTIFIED BY 'pass';

    reply
    0
  • Cancelreply