MySQL Workbench works and phpmyadmin does not

user3327194

About 2-3 weeks ago I stopped using phpmyadmin and started using MySQL Workbench. Now, I can't connect to phpmyadmin. I tried connecting from two different computers and from the server. Tried connecting with at least 4 users and root. I am suspecting that this is Workbench's fault. During the time I used Workbench I made some changes to user privileges, but don't remember the specifics. I get "Wrong username/password".

Any thoughts ?

Isaac Bennetch

Looks like some of the comments have been deleted, but judging by what's left there was a suggestion for you to check your permissions for your user with hostname localhost, and it appears you did not understand that % is not the same as localhost. Many installations come with several root users, one for host localhost, one for host %, and sometimes a third for 127.0.0.1. This is normal and part of how MySQL handles permissions. TCP/IP connections match %, socket connections do not (they use localhost).

Another thing that's important to realize is that, when using phpMyAdmin, it doesn't matter what client machine you're using; what matters is what machine is the web server, since that's where the requests to MySQL come from. So you can easily get a bit confused if using a remote machine to connect to a web server running on the same machine via sockets to the MySQL server -- even though you're on a remote machine from the MySQL server, in this case it appears as a localhost connection to MySQL.

Anyway, very likely what happened was you were "cleaning up" extra users and removed one that had the opposite host value (either % or localhost); I'd simply recreate your user with the other host. That should clear it up for you.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

MySQL Workbench works and phpmyadmin does not

From Dev

MySQL works in terminal on PHPmyadmin but does not work in php script?

From Dev

MySQL connection works on CLI, but not on Workbench

From Dev

How to open mysql workbench in browser like phpmyadmin?

From Dev

MySQL query works in PHPMyAdmin but not PHP

From Dev

MySQL UPDATE works in phpMyAdmin but not in PHP

From Dev

Query works in MySQL workbench, but not in MySQL connector

From Dev

Mysql query works in Phpmyadmin but not works in PHP

From Dev

MySQL - ODBC connect fails, Workbench connect works

From Dev

MySQL Workbench Create SQL Statements error when implementing in phpMyAdmin

From Dev

MySQL SELECT query works in PHPmyadmin, not in PHP

From Dev

mysql query works in phpmyadmin but not in node.js

From Dev

MySQL INSERT query works in Phpmyadmin but not in PHP

From Dev

MySQL Query Not Working Live But Works In PHPMyAdmin

From Dev

mysql query works in phpmyadmin but errors in php

From Dev

PHP and MySQL french accent works in PHPMyAdmin but not in page

From Dev

Python MySQL queries time out where MySQL workbench works fine

From Dev

MySQL INSERT fails in Python but works fine in MySQL Workbench

From Dev

Does ER Diagram in MySQL Workbench a Relational model?

From Dev

MySQL: Connecting as root in workbench does not work

From Dev

MySQL in PHP gives error, MySQL in phpmyadmin does not

From Dev

MySQL in PHP gives error, MySQL in phpmyadmin does not

From Dev

PHP MYSQL query won't work in PHP but works in PHPMyAdmin

From Dev

MySQL Stored Function gives Access violation:1305 in Laravel but works in phpmyadmin

From Dev

Mysterious MYSQL syntax error - works fine in phpMyadmin, not on page

From Dev

Insert fails in phpMyAdmin, but works when using MySQL directly

From Dev

mysql "between date" query works in phpmyadmin but returns nothing with PDO

From Dev

MySQL Stored Function gives Access violation:1305 in Laravel but works in phpmyadmin

From Dev

mysql and php %like% query. Works in phpmyadmin but different results php

Related Related

  1. 1

    MySQL Workbench works and phpmyadmin does not

  2. 2

    MySQL works in terminal on PHPmyadmin but does not work in php script?

  3. 3

    MySQL connection works on CLI, but not on Workbench

  4. 4

    How to open mysql workbench in browser like phpmyadmin?

  5. 5

    MySQL query works in PHPMyAdmin but not PHP

  6. 6

    MySQL UPDATE works in phpMyAdmin but not in PHP

  7. 7

    Query works in MySQL workbench, but not in MySQL connector

  8. 8

    Mysql query works in Phpmyadmin but not works in PHP

  9. 9

    MySQL - ODBC connect fails, Workbench connect works

  10. 10

    MySQL Workbench Create SQL Statements error when implementing in phpMyAdmin

  11. 11

    MySQL SELECT query works in PHPmyadmin, not in PHP

  12. 12

    mysql query works in phpmyadmin but not in node.js

  13. 13

    MySQL INSERT query works in Phpmyadmin but not in PHP

  14. 14

    MySQL Query Not Working Live But Works In PHPMyAdmin

  15. 15

    mysql query works in phpmyadmin but errors in php

  16. 16

    PHP and MySQL french accent works in PHPMyAdmin but not in page

  17. 17

    Python MySQL queries time out where MySQL workbench works fine

  18. 18

    MySQL INSERT fails in Python but works fine in MySQL Workbench

  19. 19

    Does ER Diagram in MySQL Workbench a Relational model?

  20. 20

    MySQL: Connecting as root in workbench does not work

  21. 21

    MySQL in PHP gives error, MySQL in phpmyadmin does not

  22. 22

    MySQL in PHP gives error, MySQL in phpmyadmin does not

  23. 23

    PHP MYSQL query won't work in PHP but works in PHPMyAdmin

  24. 24

    MySQL Stored Function gives Access violation:1305 in Laravel but works in phpmyadmin

  25. 25

    Mysterious MYSQL syntax error - works fine in phpMyadmin, not on page

  26. 26

    Insert fails in phpMyAdmin, but works when using MySQL directly

  27. 27

    mysql "between date" query works in phpmyadmin but returns nothing with PDO

  28. 28

    MySQL Stored Function gives Access violation:1305 in Laravel but works in phpmyadmin

  29. 29

    mysql and php %like% query. Works in phpmyadmin but different results php

HotTag

Archive