LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Connecting to mysql (https://www.linuxquestions.org/questions/linux-software-2/connecting-to-mysql-43092/)

webee 01-28-2003 11:35 AM

Connecting to mysql
 
Hi: I have installed mysql3.23.55 on linux RH7.1. Now mysql is running successfully on my system. When I try connecting thru
java(mysql-connector-java-3.0.1) I am getting an Access Denied error. It says mysql@machinename access denied.
Now i tried from command line: mysql -u mysql -p -h localhost. This works, but when i give:mysql -u mysql -p -h machinename it doesnt work.
Why is that? The user mysql has all priviliges granted. Thanks for any help on this.

markus1982 01-28-2003 12:41 PM

You should check your permission grants ... like users can be allowed only to connect from localhost or from anywhere (in that case a username@"%" would be in the grant line).

If you need more help read up on GRANT

webee 01-30-2003 02:47 PM

Thanks a lot. I got it now.


All times are GMT -5. The time now is 06:19 PM.