Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

perl mysql problem

Status
Not open for further replies.

yeller2

Programmer
Feb 8, 2007
69
US
I've created a script that performs a simple select query on a mysql db table. When I run the script on one computer I don't receive any results back. When I run the same script on another computer, but setting the db host to the first computer, I get results. Any ideas?
 
Need more info...

Where does the Mysql database reside?
How are the computers connected?
Does your error log provide any clues?
Can you supply an example of your code?
 
If you run it on the first computer.. but leave the dbhost info in (also point to the first computer) do you get the same results? Are your running identical versions of perl?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those Who Say It Cannot Be Done Are Usually Interrupted by Someone Else Doing It; Give the wrong symptoms, get the wrong solutions;
 
I think you are probably going to have to post the code in order for us to help you...

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Something goofy is going on, now it's working. Thanks anyway.
 
What I found was that I was having an issue with certain tables when I used tried to read them using a host other than localhost from the local computer. The permissions were the same in the mysql user table, but someone told me that a permission issue could be somewhere else. I'll just settle for reading the tables using a localhost account.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top