in reply to Re^3: connect to DBD::MYSQL
in thread connect to DBD::MYSQL

the code is identical, i.e. NO space before 'localhost' tried with 127.0.0.1 get failed: access denied for user 'test_user'@'localhost' I am doing this and still doesn't work
use test; # create table (name char(20)); CREATE USER 'test_user'@'localhost'; GRANT ALL PRIVILEGES ON * . * TO 'test_user'@'localhost'; select * from ttt;
seems like the 'user' does not have access privileges. Any ideas?

Replies are listed 'Best First'.
Re^5: connect to DBD::MYSQL
by karlgoethebier (Abbot) on Feb 01, 2014 at 19:10 UTC
    "...Any ideas?"

    Not really. Did you try SHOW GRANTS FOR 'test_user'@'localhost'; (..assuming you can connect via mysql client)? I know, i guess...but don't we do that every day?

    Regards, Karl

    «The Crux of the Biscuit is the Apostrophe»