WordPress database error occur when installing wordpress - database

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.

Related

Orchard CMS Logging data store in 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

OBIEE 11g - Copy MDS and BIPLATFORM schemas for new OBI install

I had OBIEE 11.1.1.6.4 installed on a windows 7 server. The app installation was corrupted and I had to re-install. Well, I re-installed OBIEE 11.1.1.6.12 (only install files I have). I want to use the same MDS and BIPLATFORM repositories as before, however; I do not have the schema passwords for the MDS and BIPLATFORM schemas. To get around this, I copied the database and gave new passwords.
When I attempt to hook the OBIEE 11.1.1.6.12 installation up to the copied database, OBIEE config says the BIPLATFORM and MDS schemas cannot be found. Does anyone know if this can be a version issue? The copied database was from a 11.1.1.6.4 install and the app is now 11.1.1.6.12. Is this the problem?
Any thoughts?
I found the answer and wanted to post it for others. There is a table in the repository called dbo.schema_version_registry$. If you change the schema prefix in the copied database (required if using the same DB), then you will need to manually edit this table to reflect the new prefix!
Took me days to track down but it's just a simple update against the table. Hope this helps someone.

Phpmyadmin wont let me create new database. Says no privilage

I'm working on IIS. I am trying to copy a table or create a new table in phpmyadmin so I can mess around with a database to try and fix some other problems I am having. However when I try to create a new database it says "No Privilages". Can someone help me fix this. Thanks.
The person responsible for your MySQL is the one to contact.

WordPress Plugins Development: How to initialize database when Plugin insalled/activated, and delete database when Plugin deactivated/deleted

I have a question:
How to initialize database when Plugin insalled/activated,
and delete database when Plugin deactivated/deleted.
The platform is PHP+MySQL on WAMP.
Can ANYONE help me?
Really Appreciate!
Crete MySQL table while installing plugin
Simply execute your MySQL create query in your plugin main file.While executing create query simply check this table is already exist or not.
Drop Mysql table while uninstalling plugin
Use register_uninstall_hook function(To answer this part of question Rarst helped me ).
More details here

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