SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Sep 2001
    Location
    State College, PA
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Newbie w/ no clue

    I just installed php mysql and apache on my redhat machine. I was going through this online tutorial: http://www.mysql.com/articles/ddws/5.html ,because everytime i tried to do anything with mysql i would get access denied. I set the root password to "password" and even when i try to change it to something else i get access denied. HELP I can't do anything.

  2. #2
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try using no password at all...I dont' think any username/password is needed for a local DB like that. I think you only need to specify the host (as "localhost").

  3. #3
    SitePoint Member
    Join Date
    Sep 2001
    Location
    State College, PA
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't even create a new DB

    when i type ./bin/mysqladmin create testDB it says access denied for user: 'root@localhost' (Using password: NO)'

    How do i not use a password ?

  4. #4
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, when you're specifying a connection to the DB in your code, just leave out the username/password arguments that you'd usually use.

  5. #5
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mysqladmin -u root create testDB
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  6. #6
    SitePoint Member
    Join Date
    Sep 2001
    Location
    State College, PA
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did'nt even start to write code yet. I am was just trying to make a test database to play with.


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
  •