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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:32:50+00:00 2026-05-26T19:32:50+00:00

I have just added a null password field to a mysql table using this

  • 0

I have just added a null password field to a mysql table using this code:

ALTER TABLE `mytable` ADD `password` VARCHAR( 25 ) AFTER `ClientEmail`

Now that the password field is in the table I want to populate those null fields with a password of some sort. What is the proper method of populating the fields with randomly chosen passwords which are different for each of the records? After the passwords have been written to the table, I intend to email each record in the table to advise them of their newly created password (and then of course give them an opportunity to create their own, but that’s a separate issue).

Thank you.

  • 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-26T19:32:51+00:00Added an answer on May 26, 2026 at 7:32 pm

    I generally create a string of characters that I deem are valid password characters. I then use rand() with substr() in a loop to create the random password, one character at a time.

    Then, once you have the password, you send a HTTPS link to the customer via email that allows them to “pick up” the password for a limited time.

    After you let the user change their password, you should store just the hash of the password in the database.

    Of course, this could be simplified by removing the password and just use the unique link, and require them to set the password when they click on the secure link.

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

Sidebar

Related Questions

I have added some code which compiles cleanly and have just received this Windows
Okay, so i have the following html added to a site using javascript/greasemonkey. (just
I have a table called downloads with a few thousand rows. I just added
I have just added a Core Plot view to my application based on a
I have just added a Telerik menu to my MVC application. I also have
What's wrong with sqlite 3 ? I have just added libsqlite3 file to my
I am just getting started with Silverlight and have recently added a Silverlight project
Have just started using Google Chrome , and noticed in parts of our site,
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have a custom event listener being added (fluently) to my configuration using: .ExposeConfiguration(c

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.