RE: [PHP-DB] Cannot connect to local server

2005-02-15 Thread Denis Gerasimov
Thanks, Miles! But actually I have PHP 5.0.2 + MySQL 4.1.9 + mysqli + PEAR::DB latest installed on the server. I have spent some weeks struggling with connection and charset problems. But today I finally solved all these issues except one thing that seems to be a bug of PEAR::DB package. The pr

Re: [PHP-DB] Cannot connect to local server

2005-02-10 Thread J. Connolly
Novice, This is rather complicated code. In addition you are making it over complicated by taking constants and just renaming them as other contants. This accomplished nothing. You would be better of just placing the information in the correct place. Otherwise you can make the arguments into

Re: [PHP-DB] Cannot connect to local server

2005-02-10 Thread Novice Learner
Make sure that: localhost is actually "localhost" username is the actual authorized username of the database the password is the actual password you have given for the user the database is the actual database name you have given. I am an absolute beginner and I have a file like this and works pe

Re: [PHP-DB] Cannot connect to local server

2005-02-10 Thread J. Connolly
have you tied using $link = mysqli_connect("$host","$usernam","$password","$database") I have never used the code you are trying to use. But i am also noob. hope this works jzf Miles Thompson wrote: New version of MySQL, old PHP? possible password encryption mis-match? Check out: http://dev

Re: [PHP-DB] Cannot connect to local server

2005-02-10 Thread Miles Thompson
New version of MySQL, old PHP? possible password encryption mis-match? Check out: http://dev.mysql.com/doc/mysql/en/old-client.html Regards - Miles At 06:33 AM 2/10/2005, Denis Gerasimov wrote: Hello, I am trying to connect to MySQL using $mysqli = new mysqli("example.com", "user", "pass",

[PHP-DB] Cannot connect to local server

2005-02-10 Thread Denis Gerasimov
Hello, I am trying to connect to MySQL using $mysqli = new mysqli("example.com", "user", "pass", "db"); And access is ALWAYS denied (I played around changing user name/pass/host - didn't help me at all) The thing is that I CAN connect to the db server using this user name and password with my