#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2008
    Posts
    62
    Rep Power
    6

    How to get my database connection to work using XAMPP


    hi i have installed XAMPP and its got php and apache working fine but mysql does not work i get the error:

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\testDB.php on line 5
    couldn't connect localhost

    i have not configured anything for the database, because i don'nt know how to using XAMPP?
    how do I even create a database using XAMPP?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2008
    Posts
    62
    Rep Power
    6
    problem solved
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2009
    Posts
    11
    Rep Power
    0
    Yes you need to create a user account first.
    Default username is set to root, with no password! (Normally)

    Glad you solved it!
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2009
    Posts
    1
    Rep Power
    0

    mysql connection from ASP.NET


    i am beginner for using xampp.
    1) can u tell me how to create a new user account for database?
    2)what should i put the connection string in ASP.NET to coonect to mysql database?

IMN logo majestic logo threadwatch logo seochat tools logo