WordPress database setup failure on FastHosts server - php

I am trying as best I can to follow the setup instructions for WordPress, using a FastHosts hosting package.
one click install, they said...it's easy, they said!
I've entered by database details into the setup page correctly as specified by the instructions, and they I get this:
Error establishing a database connection This either means that the
username and password information in your wp-config.php file is
incorrect or we can't contact the database server at xxx.xxx.xxx.xxx.
This could mean your host's database server is down.
Are you sure you have the correct username and password? Are you sure
that you have typed the correct hostname? Are you sure that the
database server is running? If you're unsure what these terms mean you
should probably contact your host. If you still need help you can
always visit the WordPress Support Forums.
Before you ask: yes, xxx.xxx.xxx.xxx points to a real IP address.
Any ideas?

Have you install the database befor installing the Wordpress? It seems that the database is not installed.

Make sure you have web scripting enabled for the domain you are trying to load WP on.
https://help.fasthosts.co.uk/app/answers/detail/a_id/1751/~/installing-wordpress-manually - (step 3)

Related

WordPress Installation Using Mamp: Error establishing a database connection

I am a beginner in WordPress. I have been doing an Udemy course, entitled "WordPress Theme Development Using Bootstrap" by Brad Hussey.
I have installed MAMP. Then I followed all the instructions of the tutorial to create a new database and a new user account via PHPMyAdmin. Then I edit the wp-config-sample.php file appropriately using the correct credentials. I copied all the codes from https://api.wordpress.org/secret-key/1.1/salt/ and paste them in the right place. Then I renamed the file to wp-config.php. Now, when I go to http://localhost/wp-admin/ in my browser, the following error appears:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.
Are you sure you have the correct username and password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?
If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
I have typed the correct username and password in the wp-config.php file. I had typed the hostname as "localhost". And MySQL server is running on MAMP. So, I have done everything correctly. But can't get rid of this frustrating issue. Please, help me. I cannot proceed further to this course without solving it.
I have already seen some of the YouTube videos explaining the same solution that I tried to follow. It worked for them, but not for me.

Is it possible to use CouchDB as wordpress primary db?

When setting up wordpress localy in my Virtualbox ubuntu image. i input couchdb credentials as the default db for wordpress, but it is failing to connect to my couchdb host saying,
This either means that the username and password information in your
wp-config.php file is incorrect or we can't contact the database
server at http://192.168.92.1:8101/. This could mean your
host's database server is down.
Are you sure you have the correct username and password? **yes**
Are you sure that you have typed the correct hostname? **yes**
Are you sure that the database server is running? **yes**
My couchdb database is up and running in http://192.168.92.1:8101/. And crated a db called wordpress there.
My question is, Is it possible to integrate couchdb with wordpress if so what is the wrong with my configuration?
and my last question is:
Is there any CMS system that can integrate with couchDB such as markuso like we integrate Wordpress with mysql?
nope. wordpress requires mysql.
https://wordpress.org/about/requirements/

Problems connecting to a remote server and performing a simple db query

I have set up a website with basic HTML/CSS files and would like to take that one step further and implement a database with some PHP to perform simple queries and whatnot.
My problem arose when I noticed while setting up the database and creating the PHP files that connect to the database (on my local machine), I used 'localhost' as an argument for mysql_connect. When I then went to drag and drop my newly created HTML/PHP files along with my database into FileZilla to upload the pages onto my remote server, there was a problem connecting to the database. I have a feeling that it is unhappy with the whole 'localhost' notion - yet I don't know what to change it to.
Currently, I am using this line of PHP code to connect to my remote database (which is all located in FileZilla-land).
$link = mysql_connect('localhost','Tommy','pass')
Also, as another quick question: does my remote server have its own phpMyAdmin page? And if so... how would one go about finding it? =D
I appreciate anyone who is able to assist me in my endeavors.
Thank you!!
Log on to your database server, check the details and obtain the correct server information such as server, username and password.
Once you change the server details you shoudl be ready to rock n roll. Edit post with the host name/server name and we may be able to find it for you.
You'll have a phpMyAdmin page where you're hosting the site. Check the membership area or cPanel.
You are right in that 'localhost' in mysql_connect needs to be different. 'localhost' is a textual representation of a loopback address AFAIK - it connects to the computer it is hosted on. As you have uploaded it to your server (a different computer) it is now trying to connect to a mysql server on the server host, instead of your home computer (which holds all the data).
To make this work you'd need to get your database onto the server you are now working from, OR depending on your home setup, point it to your local database.
Whether your host has MySQL/PHPMyAdmin available to you is another matter altogether. If they have MySQL it is probable but not definite that they have a phpmyadmin interface.
Contacting the server host will yield more information. If they have MySQL, it is probably as simple as getting the required details from them, and 'backing up' your SQL on your local server and uploading it to the new server (easily done with PHPMyAdmin)
TL;DR: The database you are trying to connect to doesn't exist on the server you're connecting from.

phpMyEdit Login Failed?

I recently downloaded phpMyEdit which is a GUI script to create/edit MySQL database tables and fields.
I uploaded the script to my server. I read the installation doc, and it doesn't require anything to be added to any file... just open phpMyEditSetup.php in the browser and add my database hostname, username and password. The problem is that, when I enter the information and click submit, I get an error message saying "login failed - try again".
I tried it on 2 different hosts and it's not working. I'm pretty sure that the database username, password and hostname I provided is correct.
Is there anyone that has faced this problem before and found a solution? If so, can you help me please?
Here are some things to try:
phpMyEdit Installation Doc - Important: Before uploading the program files to your server, make certain that your FTP client is not configured to force filenames to lower case letters.
Are you using phpMyAdmin? If so, you can use it to help make sure you have the correct hostname and username for your connection. Example:
You can also use phpMyAdmin to look at the specs for your web server and make sure they meet the requirements of phpMyEdit.
Make sure you have read the phpMyEdit Documentation
Finally, if all else fails, contact your hosting provider or web server administrator to retrieve your db hostname, username, and possibly have them reset your db password. Also, discuss the requirements of phpMyEdit with them to be sure your web server is compliant.

MySql Insert doesn't work when the website deployed on the host!

I'm using XAPP under windows and my website just working well!
when I deployed it on the host server, it seems to be working normally, but the insert requests to MySql doesn't have any effect, nothing is changing on the database!
Does anyone had this issue before? is there any configuration in MySql to make it accept insert requests? or simply whats the best way to make it work!
[EDIT]
I use PhpMyAdmin, I have two tables members and notifications, I wanna configure permissions so I can Insert into the notifications table, any hint please?
thank you
check the permissions on the database server for the username and password that you are using. It can also be restricted by IP address, among others.
Indeed, the administrator can set read-only privileges for a user or for a specific table.
Check out the "grant" command for more information.
it would be helpful if you could find out the error message that MySQL is returning. check your web server log files. if you are using some shared hosting plan, there should be an option in your host control panel to see the web server log files. PHP is configured in most places so that error messages are stored in web server log files. find out what is actually happening there. it could be permissions most likely.

Categories