I followed this tutorial (step 6) to set up a new mysql user as I am trying to access the database (already created through phpmyadmin) with PHP. https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-20-04
When I login to the console and try to create the new user with a string like this: CREATE USER ‘example_user’@‘%’ IDENTIFIED WITH mysql_native_password BY ‘password’;
I get an error saying RROR 1064 (42000): 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 ‘BY ‘password’’ at line 1
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.