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

  • Home
  • SEARCH
  • 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 65335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:55:49+00:00 2026-05-10T18:55:49+00:00

I work on a app which has only one way to get a working

  • 0

I work on a app which has only one way to get a working DB connection: a function that returns a MySQL connection resource.

Is there any way for me to convert that MySQL connection to a PDO MySQL connection?

I don’t have access to the MySQL server in any other way, no username, password, nothing. I can’t see/get the file with the function in it, either. I might be able to, later, but still, I’d like to know if it is possible.

  • 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. 2026-05-10T18:55:50+00:00Added an answer on May 10, 2026 at 6:55 pm

    No – that’s impossible. PDO and the ext/mysql are two completely different components to access a MySQL server.

    Without username, password, host (can be retrieved by using string mysql_get_host_info ([ resource $link_identifier ] ) and database name (can be retrieved by looking at a list of databases on the server with resource mysql_list_dbs ([ resource $link_identifier ] )), you won’t be able to connect to the server with any other method than the given one. It’s impossible to read the username and/or password from a given ext/mysql resource.

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

Sidebar

Related Questions

I've trying to get an ASP.net (v2) app to work in the debugger and
I work on a desktop sales app that is run off a tablet and
At work, we have multiple branches that we may be working on at any
I have a WPF application which so far has been client only, but now
I have a ASP.NET Web application which has 2 projects (one for UI and
We're hosting our Ruby on Rails application with the EngineYard App Cloud, which has
I need to solve the following question which i can't get to work by
We have some corporate intranet users using a WinForms app to work on a
A while ago I developed a little LAN chat app. in Java which allows
I am writing an application which is based in HTML and has a JSON

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.