[Phplib-users] Access denied, 2 databases, extrange error
Brought to you by:
nhruby,
richardarcher
From: 3s <3s...@se...> - 2002-07-31 11:31:32
|
Hi, my first message to the list. I was using for 3 years ago DB classes from PHPLIB without problems, until now. Normally we use the library with one database only, but in one of my projects I need to connect to different databases (MySql), with different servers and different users. Only in one point the system is showing me the error, in other places works ok, but suspect that I have good look and I doing something wrong. In the browser after the last </html> label shows the following error: Access denied for user: 'pro...@21...' to database 'portal' The scritps makes all needed tasks, connect to 2 different databases, one internal and one external, with different users, prepare the results and shows correctly in the screen. I use different extensions for the db_mysql class: tbl, tbl2, and so on. Every extension has their own properties for database, user, etc. And I make instances of this classes into the functions. I suspect that the problem must be related to: 1st- the user must be probando@213.96.113.210, but for some reason appears in the way pro...@21... 2nd- its trying to connect to the database 'portal' with the wrong user, must be prueba@localhost I tried to debug when makes connections, queries and free the results, but doesnt shows else, during the execution of the script, only when PHP its finishing. Anybody can help me? Regards, Jose Valle -- 3s <3s...@se...> |