localhost
is special in MySQL, it means a connection over a UNIX socket (or named pipes on Windows, I believe) as opposed to a TCP/IP socket. Using %
as the host does not include localhost
, hence the need to explicitly specify it.
More Related Contents:
- MySQL how to fill missing dates in range?
- How can i optimize MySQL’s ORDER BY RAND() function?
- ‘IF’ in ‘SELECT’ statement – choose output value based on column values
- Why does MYSQL higher LIMIT offset slow the query down?
- How to split the name string in mysql?
- Normalization in MYSQL
- Is there a REAL performance difference between INT and VARCHAR primary keys?
- How to set a maximum execution time for a mysql query?
- MySQL select statement with CASE or IF ELSEIF? Not sure how to get the result
- SQL keys, MUL vs PRI vs UNI
- Getting around MySQL “Can’t reopen table” error
- Can’t Create Entity Data Model – using MySql and EF6
- In MySQL, can I copy one row to insert into the same table?
- How to copy a row and insert in same table with a autoincrement field in MySQL?
- MySQL: Cloning a MySQL database on the same MySql instance
- MySQL sharding approaches?
- How to move columns in a MySQL table?
- access denied for load data infile in MySQL
- Where to change the value of lower_case_table_names=2 in XAMPP on Windows?
- Whats the fastest way to lookup big tables for points within radius MySQL (latitude longitude)
- MySQL Workbench: Error in query (1064): Syntax error near ‘VISIBLE’ at line 1
- Optimization of MySQL search using “like” and wildcards
- Does Order of Fields of Multi-Column Index in MySQL Matter
- Alternative to using LIMIT keyword in a SubQuery in MYSQL
- NodeJS MySQL Dump
- Rank() over Partition by in mysql
- Automatic Rollback if COMMIT TRANSACTION is not reached
- MySQL cartesian product between two SELECT statements
- Sum until certain point – MySql
- Speeding up mysql dumps and imports [closed]