Orchard CMS Logging data store in database? - database

I want to store all my loggign exception data in the database. I can log them in file, but with db , added appender attribute in log4net.config , but no success. Can anybody share some advise ? thanks in advance.

this http://logging.apache.org/log4net/release/config-examples.html has provided almost all databases sample config file to store the logging data into the database table. Run scripts for creating the table and add the config file in the project. Be cautious all the parameter name and layout spelling.
I tested for MS SQL, worked for me and will works for any other databse too.
Happy coding

Related

WordPress database error occur when installing wordpress

enter image description here
This is a problem has occurred when I installing WordPress
Please delete the existing database and create a new or change the table prefix from wp_ to something else. It will resolve your issue.
Actually the issue is your database have already all tables and you are trying to install WordPress using this table.
For the ideal scenario when you install fresh WordPress please use the new database rather than the old database.
So, please create new database and change the name in you wp-config.php file for DB_NAME.
Here I have shared the screens-shot for better understanding.
Screen-shot: https://prnt.sc/12aedo6
I hope it will helpful.

sqllite database location for codename one

SQL lite created by using the following code
Database db = Database.openOrCreate("test.db");
Its creates the database, after that we created tables on this database. We need to know where is this test.db file stored?.
Note: we are using Net Beans IDE on windows 10 system for our development.
Thanks in advance
This is discussed in the SQL section. You need to use getDatabasePath before opening the database to replace the file with a premade file which I assume is the use case you are aiming at.
We can get the .db file from the path "C:\Users\Admin.cn1\database".

IBM Optim Insert request wrong behaviour

I am new here and in the IBM Optim world, so i hope there is someone here who have worked with IBM Optim.
Here is the issue:
I have a production and a testing database environment.
In my production database i have several users (100 approx.), and I did an extract request from this database including PKs, synonyms, packages, etc.
My problem is when i try to perform an insert request of that extraction. In my Table Map Editor i set a Qualifier Source (MAIAR.SISCEL) and a Qualifier Destination (DB_REPORTS.MS_OPTIM, where MS_OPTIM is a user in my destination database). The problem is that most of the objects i extracted from the production database belong to differents users, but when i try to insert that object into the destination database, the insert request changes the name of the original object getting a cloned object in the destination user (MS_OPTIM).
For example, i have a synonym object TC_SISCEL.PG_SYNONYM but when the object is inserted into the destination database, it is renamed as MS_OPTIM.PG_SYNONYM. And that does not work for me. I need to copy the object with the same name as i extracted from my production database.
Please someone help me! I have been trying to figure this problem out almost a week with no solution.
Thank you in advance.
Sami

open an existing sqlite database - HTML5

I am trying to access an sqlite3 DB from an HTML5 page. The DB is found the physical folder. How to open the DB. All the sample in net describes window.openDatabase() method. This is creating a new db instance. How to open an existing database.
thanks in advance
Geervani
When you tried to use "window.openDatabase()" on an existing database, what happens to the data?
My guess is "window.openDatabase()":
creates the DB is not existent,
then use it use it if it exists

Why am I getting errors after renaming my database in CakePHP?

After I uploaded my application created using cakephp, I found out that I had to rename the database. I renamed my database accordingly and changed the settings in the database.php file in the "config" folder. But my application is still not running.
I am being shown this error message
"Missing Database table"
"Error: Database table tbl_topics for model Topic was not found."
I have double checked the existence of tbl_topics in the database (it is there in the database) but the application says "table not found"
what might be the problem, please help me out...
Make sure the host/user/pass that you've set-up in the config.php file have access to that database and table
You could also try running cake schema generate --dry which will spit back any problems with the connection that you might be having
Also have a look in your app/tmp/logs for some extra information on the problems you are experiencing
Take the username and password you are using for cakephp and it's db connection and connect to the database from the command line. I'm presuming you are using a unix-type system and mysql?
mysql --user=user_name --password=your_password db_name
...and then try to run a simple select:
SELECT * FROM tbl_topics
If you get an error there, it will at least identify that it is a low level db problem and the likely solution is that you need to grant permissions to that username to select from that database. Your current access levels for that user is probably granting access to the db under the old name.
You have probably uploaded your cache files as well. Make sure you delete all the files in /app/tmp/cache/*
Warning: Don't delete the folders, files only!
Also, make sure your tmp folder and all the subfolders are world-writable.
One last thought would be to check your model cache. I don't know why that would impact you with respect to connecting, but it's worth taking a look in app/tmp/cache.
:-)
finally got it.... :-D
I forgot to assign the user access to my application's database on main server. After assigning the permissions all went fine.
Anyways thank you all for your valuable answers... It helped me gain some additional knowledge about cakephp.

Resources