Results 1 to 3 of 3

Thread: MySQL - assigning user and password

  1. #1
    Join Date
    Jul 2010
    Location
    Near Albany, NY
    Posts
    56
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default MySQL - assigning user and password

    I've been using "root" as my user name and not using any password at all, when setting up a MySQL database just for learning purposes. I've been using PuTTY to create and work on my databases.

    Now I'm ready to put up a registration page on the Net, and will want to have a mysql_connect statement in it. So now I need to have a real user name and to have an actual password.

    My question is - how do I assign those to a database that already exists?

    (For that matter, how do I assign them when I create a db in the first place?)
    Last edited by jscheuer1; 10-16-2010 at 02:47 PM. Reason: restore original post

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You had edited the above changing it to something like, "Sorry dumb question." And you removed the actual question.

    If they're asked sincerely, there are no dumb questions, just dumb answers.

    I too am just starting out with MySQL and would love to see this question answered.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2010
    Location
    Near Albany, NY
    Posts
    56
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    Hello, JScheuer,

    I edited the question because I discovered that the answers are in Chapter 2 of the MySQL book I have (MySQL by Larry Ullman, 2nd ed.).

    It's the kind of question that, I think, we are supposed to research for ourselves before asking here.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •