If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
Ad Widget
Collapse
Error connecting to database [Unknown database 'osmiy']
did you copy the database configuration file from the beta frontend to the 1.1? or at least set your database configuration again for the new frontend? there is a file in the includes directory db.inc.php I think it is.
Ok, apparently 'osmiy' forgot that most us don't have a database called that.
In zabbix1.1 in the webserver frontend files, include/db.inc.php has the database set to "osmiy". I changed it to zabbix and the web interface started working again.
One thing I wondering. Sometimes I test changes or zabbix backups by creating a different database like "zabbix2" load the schema, restore the data, and check it in the web interface after setting the database to zabbix2 in the zabbix_server.config.
With it hard coded in db.inc.php, doesn't that make this impossible now?
I know that the db.inc.php file has needed that set, for sure since Beta9.. That's the first version I tried. But you always change the database name in both places if you wanted to test on a different database.
Hm.
I was doing that very thing in beta11 and beta12 and the only place I had to change the database name was in zabbix_server.conf.
This seems to me like it was an oversite on the part of whomever is writing the php code.
I was having database issues with beta11 and beta12, where whenever I would start the server it would start updating the db and the db would crash then the server would crash (turned out to be db corrption)
I created a new database called zabbix2, built it out from dumps of database zabbix tables and the default schema.sql file for the tables that were corrupt, changed the db name in zabbix_server.conf to zabbix2 and it worked.
That's why I was thrown off when I upgraded to 1.1 and the web interface started complaining about the database name being osimy.
Comment