gutiersa wrote on Tuesday, October 16, 2007:
Thanks for your reply.
Here is where I am…
The problem turned out to be a localhost issue that my system has. For some reason my ip address is not equal to localhost most of the time. So Mr. Kennerson above was right, for some reason after setup.php (where I specified my ip address) the host went back to local host. So the program did not find the database openemr at localhost, which makes sense.
To answer your questions:
I have these tables lang_constants lang_definitions and lang_languages, and lang_definitions looks like this:
±-------±--------±--------±-----------------------------------------------------------------------------------------+
| def_id | cons_id | lang_id | definition |
±-------±--------±--------±-----------------------------------------------------------------------------------------+
| 1 | 6 | 3 | Grupo |
| 2 | 8 | 3 | Usuario: |
| 5 | 10 | 3 | EOB Posting - Instrucciones |
| 6 | 11 | 3 | Codigo Postal |
| 7 | 12 | 3 | Apellido |
| 8 | 18 | 3 | Hasta: |
| 9 | 17 | 3 | Edades desde: |
| 10 | 15 | 3 | Fecha de Cita |
| 11 | 16 | 3 | Herramienta de Comunicaciones |
| 12 | 14 | 3 | Femenino |
| 13 | 13 | 3 | Masculino |
| 14 | 19 | 3 | Seguro Social |
| 15 | 20 | 3 | Administracion de Usuarios y Grupos |
| 16 | 21 | 3 | Salir |
| 17 | 22 | 3 | Contraseña: |
| 18 | 23 | 3 | Entrar |
| 19 | 24 | 3 | Administración |
| 20 | 25 | 3 | Contraseña |
| 21 | 28 | 3 | Facturación |
| 22 | 29 | 3 | Inicio |
| 23 | 27 | 3 | Notas |
| 24 | 26 | 3 | Informes |
| 25 | 32 | 3 | (Más) |
| 26 | 31 | 3 | Autorizaciónes |
| 27 | 33 | 3 | Localizar Paciente |
I changed the 3 to a 1 for lang_id, because I was eager to see the program working in my system.
My sqlconf.php file looks like this after I changed $host from localhost.
// OpenEMR
// MySQL Config
// Referenced from sql.inc
$host = ‘192.168.x.xx’;
$port = ‘3306’;
$login = ‘openemr’;
$pass = ‘mypasswordhere’;
$dbase = ‘openemr’;
$sqlconf = array();
$sqlconf["host"]= $host;
$sqlconf["port"] = $port;
$sqlconf["login"] = $login;
$sqlconf["pass"] = $pass;
$sqlconf["dbase"] = $dbase;
//////////////////////////
//////////////////////////
//////////////////////////
//////DO NOT TOUCH THIS///
$config = 1; /////////////
//////////////////////////
//////////////////////////
//////////////////////////
The program seems to be working, at least I was able to log in as admin.
Here is what happens when I try to log in to mysql as openemr:
Hserv# /usr/local/bin/mysql -u openemr -p openemr
Enter password:
ERROR 1044 (42000): Access denied for user ‘openemr’@‘localhost’ to database ‘openemr’
again it is the same problem of the localhost. Setup.php did not create the user with host 192.168.x.xx as I requested. Or if it did it got changed.
*************************************************************************************************************************************
By the way, the lang_definitions table has another problem, I think. Not just that it’s in spanish, but my login screen has the following:
Notas (notes) where the word User should be, and Facturacion (billing) where the word password should be.
at the bottom of the page there is the word inicio which is correct for start. The rest of the page is correctly in English.
Thank you so much for your help!