Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Virtual Tradeshows by Ziff Davis Enterprise – A Unique Opportunity to Interact with IT Experts, Access Information, and Gain Insight on Today’s Trends in Technology Learn more
  #1  
Old May 31st, 2000, 10:46 PM
ericjee ericjee is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 2 ericjee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to ericjee
if i were to set up internet access to a mysql database with the mysql and jswdk on the !same! server, how would i set up the mysql host, user, and db tables?
I have been having numerous troubles with doing this, mostly in the part that my java servlet returns the mysqlexception "server config denies access to data source"
I figure this must be a problem with the way my access tables are set up.

currently they are..
under host
there are localhost and machinename rows

under user there is
localhost ...root..password
localhost ...eric..password

under db there is
% the_db_name ..user

i cannot understand what is going wrong , i have been at this for so long..should there be something else under user/host, is it incorrectly set? Maybe an internet address, something.com? an IP address?
thanks a million, eric
Comments on this post
BaronVonDoppleG agrees!

Reply With Quote
  #2  
Old June 5th, 2000, 07:25 PM
Robman Robman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: SLC, UT, USA
Posts: 47 Robman User rank is Private First Class (20 - 50 Reputation Level)Robman User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
"under user there is
localhost ...root..password
localhost ...eric..password"

Try adding user "nobody" for localhost to this table and don't specify a password. This is the user id that runs the webserver. Of course I'm assuming you're using Apache. If not then find out what the webservers user name is and add that to the user table. There is also an excellent tutorial here at devshed on this in the mysql area.

Robman

Comments on this post
BaronVonDoppleG agrees!

Reply With Quote
  #3  
Old June 14th, 2000, 12:51 AM
rmlowe rmlowe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 1 rmlowe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Are you running on Redhat? If so, they ship a broken /etc/hosts with the following line in it:

127.0.0.1 localhost.localdomain localhost

This isn't standard, what it should be is
127.0.0.1 localhost

This would cause 127.0.0.1 to map to localhost.localdomain first, which is not correct.

You could either change /etc/hosts, or change the user table to look like this:

% ...root..password
% ...eric..password

which means MySQL won't care about what machine you are using to connect to the database.
Comments on this post
BaronVonDoppleG agrees!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > help me please***servlets+mysql


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway