Question

I can't remotely access my mysql database.

Hello I can’t access my mysql database remotely, I set bind_address = 0.0.0.0 and opened the port, create users such as arthur@‘%’ and it doesn’t work. Could you help me ? Here is the error on the remote computer:

arks@arkslaptoplinux:~/Dossier/Etudes/Iut/2/SAE/sae_3$ mysql --host 161.35.245.200 --user arthur -p
ERROR 1045 (28000): Access denied for user 'arthur'@'pop.X.X.X.X.mobile.abo.orange.fr' (using password: YES)

I use an digitalOcean Droplet


Submit an answer
Answer a question...

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!

Sign In or Sign Up to Answer

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.

This comment has been deleted

Bobby Iliev
Site Moderator
Site Moderator badge
October 11, 2022

Hi there,

Can you share the output of the following query:

select user,host from mysql.user;

You should see the following output:

    +--------+-----------+
    | user   | host      |
    +--------+-----------+
    | arthur | %         |
    +--------+-----------+

Also, what is the MySQL version that you are using?

Best,

Bobby

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.