Hey guys I have a problem setting up a new webserver. Mysql 5.7 didnt work on Sierra so I am trying 5.6.

I have my webservice is up and running.
I have my mailservice is up and running.
I have my database set up and use Navicat to connect. All is fine.
Executing a perlscript on the website gives the following error:
[client 213.125.161.115:50545] AH01215: Can't call method "prepare" on + an undefined value at /Library/WebServer/CGI-Executables/bonriche/te +st.cgi line 57.: /Library/WebServer/CGI-Executables/bonriche/test.cgi
This is where the code is truing to connect to the database at: http://www.bonriche.com/cgi-bin/bonriche/test.cgi

Mysql is here: op/local/var/db/mysql56

System: MacOs Sierra 10.12.6

Perl:
perl5 @5.24.2_0+perl5_24 (active)
perl5.24 @5.24.2_0 (active)

p5-cgi @4.360.0_0 (active)
p5-dbd-mysql @4.43.0_0 (active)
p5-dbi @1.637.0_0 (active)

mysql56 @5.6.34_0 (active)
mysql56-server @5.6.34_0 (active)
mysql_select @0.1.2_3 (active)

I am lost, where do I fix this problem? Anyone?

KInd regards,

Ton

In reply to DBD DBI Mysql Connect by Umdurman

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.