Hi guys, I really appreciate it if you can help me with this problem then I'm going to be a conductor I'm confronted with Everything works well on the local host but for unknown reasons, the active record does not work on the live server. I am not able to make any inquiries and am now trying to fix it. I have not found any errors related to the database connection and I am fully confident that all database configuration details are correct and all user privileges are also there.
Database.php
$ activ_group = 'default'; $ Active_record = TRUE; $ Db ['default'] ['hostname'] = '111.11.111.111'; $ Db ['default'] ['username'] = 'user name'; $ Db ['default'] ['password'] = 'password'; $ Db ['default'] ['database'] = 'database'; $ Db ['default'] ['dbdr'] = 'mysical'; $ Db ['default'] ['dbipfix'] = ''; $ Db ['default'] ['pconnect'] = true; $ Db ['default'] ['db_debug'] = Wrong; $ Db ['default'] ['cache_on'] = falls; $ Db ['default'] ['cachered'] = ''; $ Db ['default'] ['char_set'] = 'UTF8'; $ Db ['default'] ['dcc clan'] = 'utf 8_gjarac';; $ Db ['default'] ['swap_pre'] = '; $ Db ['default'] ['autoinit'] = true; $ Db ['default'] ['stricon'] = falls; Example: $ this- & gt; Db- & gt; Query ("trunket table test");
I know that I am using an active record correctly because it works well on the local host, just do not understand what the problem is on the server is its Thanks for the time and help of friends
If your database is hosted on the same server / CI If you have shared hosting as an application then you should be a host as a "localhost". Elsewhere is hosted so I'll check that CI hosting server has access to the DB
No comments:
Post a Comment