I've started a new Wordpress site, and and trying to import a database form a site I had about 3 years ago.
Whenever I click on import, choose the file and set it away, I get this error:
Error
SQL query:
--
-- Table structure for table `wp_commentmeta`
--
DROP TABLE IF EXISTS `wp_commentmeta` ;
MySQL said:
#1046 - No database selected
I've tried a few fixes such as setting the Do not use auto interrupt to off, unticking allow interruption, setting the compatibility mode and changing the character set but nothing seems to work.
I did import this file into another Wordpress blog about a year ago, so I know it worked then, but it's refusing now.
This is the phpmyadmin version:
Server: 109.68.38.30 via TCP/IP
Server version: 5.1.52
Protocol version: 10
User: DM_7850_dbadmin#webserver1.wwwconfig.net
MySQL charset: UTF-8 Unicode (utf8)
I hope someone will be abel to help here.
try following query to select database and then check
USE database_name;
Related
I am using XAMPP on Windows for the local development of WordPress with Elementor. I am building a site with lectures that need to contain a massive number of sections. I reached a gap of limitations, but this limitation is related to PHP, MySQL or Apache configuration. I already increased the limits of PHP from the php.ini file, but with no results.
I tried when "safe mode" was on - the result was the same.
I already checked the official documentation. There is not any limitation on using sections.
Here are the configurations that I am using now:
After seeing the log file located in to the xampp\apache\logs\error.log, I saw the error:
WordPress database error Got a packet bigger than 'max_allowed_packet' bytes for query UPDATE `wp_postmeta` SET `meta_value` =
After a short research I found that this config can be changed from xampp\mysql\bin\my.ini file
I changed
max_allowed_packet=1М to max_allowed_packet=100M and the issue was resolved.
I just duplicated my WordPress website hosting to cloud server but it is not working correct. What can problem be?
http://185.73.39.210/
I checked db connection again and again. Db name, user, password are not incorrect.
Looking at the source of that page, I see <?, which means your new server doesn't recognise the short form of the PHP opening tag. Either find that piece of code and change it to <?php, or (if you can change your PHP settings), enable short tags.
Im receiving an error on installing the latest Wordpress (4.5) on my home win 8.1 machine with WampServer. Ive installed WP many years ago without issue and not a noob to browser installs but this issue is baffling. The error is in the initial connection to a newly created db for WP and reads ...
Can’t select database We were able to connect to the database server
(which means your username and password is okay) but not able to
select the bib_backinbusiness database.
Are you sure it exists? Does the user bib_usrmnrg have permission to use
the bib_backinbusiness database? On some systems the name of your
database is prefixed with your username, so it would be like
username_bib_backinbusiness. Could that be the problem? If you don’t
know how to set up a database you should contact your host. If all
else fails you may find help at the WordPress Support Forums.
Funnily enough i encountered this issue when attempting to install OpenCart on my local machine a few months ago and i ended up having to remove the underscore which solves things, However, on shared hosts (as stated in the WP message above) your hosting username is usually prefixed to the DB-name and DB-username.
If i remove the underscore char no doubt it will all work fine but this isn't the issue... both OpenCart installer and WP installers have problems with underscores in DB names. My question: is there a setting (maybe in php.ini) that will override this; though i dont really think its that cos the issue seems to be with the installers.
If i were installing on a production server no doubt the issue would not arise, yet its the same installation script being run, so where is the problem here??
BTW: i also tried adding an escape char right before the underscore in the DB name in wp-config.php - thus: bib_backinbusiness. The problem persists with the underscore echoed out within the same error message.
Any ideas from anyone ecnountered the same issue?
Solved : i added the db collate key (in wp-config.php):
define('DB_COLLATE', '');
changed to : define('DB_COLLATE', 'utf8_unicode_ci');
as read directly from phpMyAdmin db definition.
I moved to a new server with my Drupal 7 site. However, I get the error:
PDOException: cache_clear_all()
SQLSTATE[42S02: Base table or view not found: 1146 Table 'Zadmin_akademi92anka.cache_metatag' doesn't exists:
TRUNCATE {cache_metatag} ; Array( ).
It appears a table was lost in the move. Disabling the module metatag would be a quick fix. If you can't disable that module through the UI then you can do it my setting the status to 0 on the related row in the "system" table in your database.
Just ry to recreate the 'cache_metatag' table, it happend to me too, eventhough I just install a fresh Metatag module. It seems there is some process interupt or install failed when you enable this module, can be the connection or else where on the server side.
All cache table has the same structure, so you can copy the table structure for 'cache_metatag' table from another cache table.
The problem is clearly written in the error message: a table doesn't exit.
I having a problem using vTiger.
Actually i had no problems but we had to format one of our servers and as the SQL has been backup'ed i had no worries about vTiger.
Just got vTiger folder backup'ed too, but when i had my server back and put the folder of vTiger into www and restored the database i had a few errors, mostly resolved by re-configuring config.inc.php because paths had changes. But after all the configuration is done again i can't login to my vTiger. He reachs the database but does not recognize any of the users. I alway get username or password is wrong. Have anyone experienced this? Is there any possible solution?
Had a similar problem a few days ago, it turns out my cookies were corrupt (Firefox). I cleared all related cookies, problem solved. Try first using some other browser to confirm. hth.
First I would check if the db is reached and populated with your data. Try connecting from the command line.
If you are working on Windows and have changed Vtiger's path, and you are using the bundled version, MySql path changes as well, but the Windows service can still be alive on the old path: in this case you must manually cancel the service and afterwards use the "Start Vtiger" button in order to create the new service.
Second, I would turn on the php debugging as explained here. In most cases, these steps should help you.
Have you checked user_privileges folder? in that you must have 2 files for particular user. eg. your user admin having id 1 in database then you must have user_privileges/sharing_privileges_1.php and user_privileges/user_privileges_1.php file
and open user_privileges_1.php file and check username/password in that file, if it's not same with your DB then change it manually.
Try this solution and let me know if it works.