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 8119143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:43:02+00:00 2026-06-06T04:43:02+00:00

Say I have a connection to a database. After reading some stuff I want

  • 0

Say I have a connection to a database. After reading some stuff I want to connect to the same database. So I naturally use the first database mysqlconnection.serverstring

Well guess what, the password and username is not included in connect1.ConnectionString. So how can I do so? Is this by design?

      Using connect1 As New MySqlConnection(ConnectLocalhost.serverString)
            connect1.Open()
bla bla bla
                Using connect2 As New MySqlConnection(connect1.ConnectionString) ' this won't work
                    connect2.Open()
                End Using
  • 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-06-06T04:43:03+00:00Added an answer on June 6, 2026 at 4:43 am

    You need to put Persist Security Info = true in your original connection string otherwise it won’t be read back.

    Course if you do that you might as well not have a user name and password…

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

Sidebar

Related Questions

Let's say I have an object Employee_Storage that contains a database connection data member.
so say I have two dependencies in my app, a connection to some pub
Let's say I have N > 1 TCP-based, connection-oriented (read: not a website) services
What is the best workflow taken when connection error occurs. Let say we have
After reading various posts and SO questions, I understand that If we have very
Let say i have one asp.net application that is having some page that uses
I have an application that uses Hibernate to connect to my MySQL database. I'm
Let's say I have rows of data retrieved from a relational database tables (perhaps
Lets say i have the following bit of code import java.sql.Connection; import java.sql.DriverManager; import
Ok let's say I have a database with a Person table. It has the

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.