New user mySQL

My new created user in mysql can't access. Any idea ?

mysql> create user 'scigadm'@'localhost' identified by 'xxxxx'


mysql> select host, user from user;
+----------------+------------+
| host           | user       |
+----------------+------------+
| localhost      | sciadm    |
+----------------+------------+
29 rows in set (0.00 sec)

-bash-3.2# mysql -u scigadm -pxxxxx
ERROR 1045 (28000): Access denied for user 'scigadm'@'localhost' (using password: YES)
AXISHKAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Did you create a password for that user?
arnoldCommented:
You need to list all, if this user is tied to a database, the database name is part of the authentication and must be included.
AXISHKAuthor Commented:
do you mean i need to grant permission to the user in mysql ?

How can I change the user account such that no password is asked for login ?
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

arnoldCommented:
Do not set a password for the account and do not use the -p.

Make sure to limit this user connection from localhost only.
AXISHKAuthor Commented:
it has been set already, Should I remove the password right now ?

Tks
AXISHKAuthor Commented:
On more check, for the host field in Mysql\user table, will this field be matched with the host from the remote connection ? In case the userA is running on ServerA connect to mySQL on ServerA, will the user appear as usera@serverA in MySQL ?

Tks
arnoldCommented:
The user/host you listed is only allowed a connection from localhost

Yes, you need to create a login for user@serverA or user@% to allow user access from serverA or from any host.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AXISHKAuthor Commented:
Tks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.