SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: mysql 4.0.12

  1. #1
    SitePoint Member PHPCAT's Avatar
    Join Date
    Apr 2003
    Location
    chicago
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mysql 4.0.12

    Need help setting new password for MySql 4.0.12 version
    I installed php, mysql, apache, all three are working so far. My next challege is to set a new password for mysql.

    I'm reading Kevin Yank Book but I'm a little confused about the instructions. any advice would be great! Thank you.

  2. #2
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have not used MySQL 4 yet so perhaps things have changed. If so, hopefully I will get a little lesson as well. :-)

    This is the article that I peek at when I want a summary of permissions for MySQL users and soforth:
    Dev Shed: Access Granted

    Here's a key quote:
    The first example sets up a user "tom", password "tommygun", who has permission to access the "recipes" database only from "localhost"


    mysql> INSERT INTO user (Host, User, Password)
    VALUES('localhost','tom',PASSWORD('tommygun'));
    mysql> INSERT INTO db (Host, Db, User, Select_priv, Insert_priv,
    Update_priv, Delete_priv, Create_priv, Drop_priv) VALUES
    ('localhost','recipes','tom','Y','Y','Y','Y','N','N');


    The equivalent GRANT command is:


    mysql> GRANT SELECT, INSERT, UPDATE, DELETE, ON recipes.* TO tom@localhost
    IDENTIFIED BY 'tommygun';
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?


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
  •