0
I’m on Linux Deepin 15.19 and installed for Web Development, however when I can’t create new databases by Mysql Worckbench say:
Your Connection Attempt failed for user 'root' from your host to server at localhost:3306: Access denied for user 'root'@'localhost'
Please: 1 Check that mysql is running on server localhost 2 Check that mysql is running on port 3306 (note: 3306 is the default, but this can be changed) 3 Check the root has Rights to connect to localhost from your address (mysql Rights define what clients can connect to the server and from which machines) 4 Make sure you are Both providing a password if needed and using the correct password for localhost Connecting from the host address you’re Connecting from
I already tried to uninstall, I did everything. I tried to change the password by command
sudo mysql -u root
and shortly after
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '1234';
and even that doesn’t solve, what I have is a mistake.
ERROR 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 'USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '1234'' at line 1
I really need your help because my development depends on it.
Matthew, the server is on the same machine that Workbench is on?
– Hiago Souza
Try to enter the mysql root password equal to the root password of your machine.
– throb
Ué, Mysql and Mariadb are not different Sgbds? After all you are running Mysql or Mariadb?
– anonimo