[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 DB

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, db);

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

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