My PERL, PHP, MySQL and test environment are all set-up under Windows XP. While Link-Testing I ran into trouble trying to access a MySQL database table. I managed to force the error message "Access denied for user 'ODBC'@'localhost' ('using password: NO')". Researching further I discovered that ANONYMOUS (for Linux) is changed to ODBC (for windows). I found an old thread on the MySQL site which was supposed to overcome this problem, it didn't work I then changed the mysql commands to reflect ODBC (mysql_query to odbc_query etc.) and the system got annoyed because it was expecting MSSQL.
That error message seems to be saying that you're trying to connect as the user called ODBC rather than by some ODBC driver. I doubt that is what you intended.

I can only gather through inference that you're talking about PHP there... moving on...

Are there any of the same restrictions (Linux/windows) using PERL and MySQL?
Please refine your question to be much more clear about these "restrictions".

perl can connect to MySQL databases with the DBI and DBD::mysql modules, which have nothing at all to do with ODBC.

How do I pass the PHP variables to PERL and then get PERL to pass them back?
From where? To where? Do you wish to embed one language in another? Or have two different processes communicate somehow?

-David


In reply to Re: using PERL, PHP and MYSQL together by erroneousBollock
in thread using PERL, PHP and MYSQL together by X9183

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.