Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-28-2003, 12:35 PM   #1
LQ Newbie
Registered: Jan 2003
Posts: 11

Rep: Reputation: 0
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.
Old 01-28-2003, 01:41 PM   #2
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
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
Old 01-30-2003, 03:47 PM   #3
LQ Newbie
Registered: Jan 2003
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks a lot. I got it now.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to Mysql blood_omen Debian 6 07-23-2004 02:20 AM
Connecting to MySQL ksalopek Linux - Software 5 06-11-2004 10:07 AM
connecting to mysql dkc_ace Linux - General 2 03-22-2003 08:18 PM
connecting mysql by php norbs Linux - Software 1 07-25-2002 02:40 AM
Mysql is not connecting from servlet.But connecting from java, help pls Harish_f Linux - General 0 05-08-2002 04:21 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration