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.
Related
I am trying to move my WordPress site from one hosting service to another. I made a backup and restored it on the new host. But I am getting internal server 500 error on the site. I have tried to fix the .htaccess file but its still giving error.
The issue is, if I try to rename it to test it, its not giving the internal 500 error but redirecting me to WordPress installation page called wp-admin/install.php
Can someone help me for solve the issue.Thanks
All the suggestions that are given are great, but if those do not work, then you can try to downgrade PHP. It had worked in my case when I was facing the same error.
You can dig in the error log and find what exactly is causing the error.
Steps for debug.
As previously said: stop all plugins and try again. If problem still exists check logs again. Then switch to default theme and so on.
Btw have moved the DB properly? With the same connection settings.
I think you should check your wp-config.php and PHP version. make sure you have entered correct DB info in wp-config like db_name, password, and table_prefix etc...
if You have changed hosting, probable You need to check database and .htacess file. If You are getting installation page means its database issue, Please check database prefix in wp-config.php file and it will solve your issue.
there are lot of causes for internal server error. The main reasons for internal server errors are.
Corrupt .htaccess file
PHP Memory limit
Faulty code in Theme
Corrupted plugin
Corrupted core files
Incompatible PHP version
In oder to fix this issue, you need to investigate in step by step order.
To solve this issue first of all you need to enable Debug mode and check the issue.
after that try with restoring .htacess file, enabling default theme, disabling plugins etc.
if you still facing 500 internal server issue, follow tutorial on WPERA to fix 500 internal server error. Hope this helps.
I am helping out a NGO as a volunteer to:
- recover their website, after an incident with their web hosting service (internal sabotage by someone who left the organization).
- I shall notice that they even had not access to the source, which makes things even more difficult;
Here’s what I did:
- installed mamp my Macintosh
- to make things easy and being really quick I developed a minimal website in Wordpress with their content in less then a couple of hours
- I asked them to get a new web domain (they were also sabotaged in the domain)
- I called a friend who runs an IT company to give us a free web hosting service, which is already mapped to the new domain
- I shall notice that the new domain doesn’t have the dns mapped to the web hosting service
Regarding migration:
- by now, I will have to run the website using the
- _I first tried to backup my data from mamp into the ftp public_html server it’s running panel, as well as cloning the database and migrating it)_
- I could not access the Wordpress installation via the IP address
As the first website iteration is pretty minimal, it’s done, and I can basically migrate the contents pretty easily after installing Wordpress:
- I erased the previous installation in their database
- _I cloned a blank Wordpress copy into public_html/site (where site replaces Wordpress_
- I crated a database in mysql as well as a user, and I associated the user with the database
- I editing the wp-config.php file, and added in database name, user, password
I added in a couple fields near the end of the document with:
- define('WP_HOME','http://ip/~user_name’);
- define('WP_SITEURL','http://ip/~user_name');
After that I tried to access the website via http://ip/~user_name where:
- _the ip argument and the ~user_name is replaced by the proper values_
- it didn’t work out
I also tried:
- Ipaddress/site/wp-admin
- it didn’t workout
I appreciate all the possible help as:
- this must be done by tomorrow
I shall notice that:
- the web hosting service is not really co-operating with giving technical assistance
the problem was really, really simple:
when evoking ip/~username i was using the name of the database in username rather then the name of the webhosting account. now everything is working.
thank you anyway
I'm trying to install DNN version 6.2.9 (I have to use this version for the client I'm working with), but I'm not being able to get the installer to work. I've followed all the steps at this link:
http://www.dnnsoftware.com/wiki/how-to-install-dotnetnuke
When I get to the step where I'm supposed to go to the installation wizard on localhost, step 10, the browser-based installer isn't loading. When I investigated the network traffic, it appears the installer is trapped in a 302 redirect loop and the request to the server is timing out. Below are the two urls it keeps alternating between. Any thoughts on what could be causing this? I suspect some kind of permissions or maybe db access problem, but I haven't been able to find a solution yet.
Local host prefix: localhost/dotnetnuke
Two .aspx files it keeps alternating between:
login.aspx?ReturnUrl=%2fdotnetnuke%2fInstall%2fInstallWizard.aspx
Install/InstallWizard.aspx
Are any of the database tables, stored procedures, etc. created? This is often an issue reading the PortalAlias information - so I would check that you have DB access, write permissions (the installer should do that for you anyway). If everything is created, check the portal alias table.
I would also check relevant file permissions mentioned in the guide.
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.
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.