Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6853935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:34:17+00:00 2026-05-27T01:34:17+00:00

I have a perl application that uses a MySQL backend. How do I verify

  • 0

I have a perl application that uses a MySQL backend.

How do I verify that the MySQL and database drivers are accessible?

I’m currently doing the following, but I don’t know if it is actually a sufficient test — I’d hate to find out six months down the line that I’m not doing the right test:

use Test::More;

BEGIN { use_ok('DBI'); }
BEGIN { use_ok('DBD::mysql'); }

done_testing();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:34:17+00:00Added an answer on May 27, 2026 at 1:34 am

    This is enough to check that connection will be available from Perl side. If you want to check if mysql server is available, you need to connect to it.

    P.S. You can also add version checking for DBD::mysql. For ex. 4.001 fixes serious bug in utf8 support.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built a tiny application in Perl that displays a graph over time.
I am new to Perl and I have a problem that's very simple but
We have an existing Perl application that supports mod_perl . However, our new host
I have a Perl application that takes from command line an input as: application
I have a mission critical Perl-CGI server-side application that I need to extend or
I have successfully configured an application that uses log4j for it's logging to log
I have a Perl web application that runs on both Apache and IIS6 on
I have application that works using Perl's CGI::Fast . Basically mainloop of the code
I have a Perl application someone else wrote and I'm trying to make it
I'm writing a basic planet viewer OpenGL Perl application, just for fun. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.