Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default Basic XAMPP problem :l

    Okay this is so annoying...

    this is my config file:

    PHP Code:
    $connect mysql_connect("localhost","olivier","pw");
    $db mysql_select_db("2ndpanel"$connect)or die(mysql_error()); 
    I also tried this before:

    PHP Code:
    $connect mysql_connect("localhost","root","");
    $db mysql_select_db("2ndpanel"$connect)or die(mysql_error()); 
    And I keep recieving this error even though I think all info is correct:

    Code:
    Access denied for user 'ODBC'@'localhost' (using password: NO) in ...
    Can someone help please ? +rep

  2. #2
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    PHP Code:

    $server 
    "localhost";
    $username "USERNAME";
    $password "PASS";
    $database "DATABASE";
    $mysql mysql_connect($server$username$password);
    $mysql mysql_select_db($database); 

  3. #3
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    Quote Originally Posted by FlorX View Post
    PHP Code:

    $server 
    "localhost";
    $username "USERNAME";
    $password "PASS";
    $database "DATABASE";
    $mysql mysql_connect($server$username$password);
    $mysql mysql_select_db($database); 
    Tried that out & it's giving me the same error.
    Sorry, (+rep for trying to help out)

    Edit: must spread.

  4. #4
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    Try logging in as the root user to the mysql database

  5. #5
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    Quote Originally Posted by FlorX View Post
    Try logging in as the root user to the mysql database
    Tried, no succes

    I think something's wrong with xampp becouse the code to connect is fine ;l

  6. #6
    Join Date
    Mar 2007
    Posts
    129
    Tokens
    0

    Default

    Code:
    $con = mysql_connect("127.0.0.1","root",""); 
    mysql_select_db("databasename", $con);
    Thats what i use on my Xampp i uise it alot for coding my PHP orders =]

    hope i helped ;]
    Making PHP Scripts for Paypal can code loads of things =)

    *I'll make it show you. You pay i send

    PM me =)

  7. #7
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    You could just install WAMP

  8. #8
    Join Date
    Mar 2007
    Posts
    129
    Tokens
    0

    Default

    I recommend Xampp lolz Wamp Lmao,

    I've used Xampp all the time never had to change it and i think you'll find my code works cos if your root never put a password ;]
    Making PHP Scripts for Paypal can code loads of things =)

    *I'll make it show you. You pay i send

    PM me =)

  9. #9
    Join Date
    Apr 2006
    Location
    Leamington Spa
    Posts
    1,375
    Tokens
    72

    Latest Awards:

    Default

    I had this problem.
    You know on the WinMySQLAdmin thing that comes with XAMPP? Have a look to make sure the my.ini is correctly set. You may actually need to have the password blank as it was the only way it worked for me.
    Argh, if you want I'll PM you my MSN and remote assist it for you if you want?
    i've been here for over 8 years and i don't know why

  10. #10
    Join Date
    Mar 2007
    Posts
    129
    Tokens
    0

    Default

    if your running Xampp and have Apache and MySQL going go to http://127.0.0.1/phpmyadmin [http://localhost/phpmyadmin] and you can set user settings like paswords etc
    Making PHP Scripts for Paypal can code loads of things =)

    *I'll make it show you. You pay i send

    PM me =)

Page 1 of 2 12 LastLast

Posting Permissions

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