I want to upload my program from c9.io to Versio.nl.
I downloaded FileZilla
Uploaded everything
Created database on the server
But I keep on receiving errors with mysqli_driver and credentials.
This is the first time I try to upload a project to a server
You need to update all the places where you define the connection to the db.
Set the user, the password and the host as specified by the hosting provider and the error 1 will be fixed
The second error is coming because of the first and should probably disappear after fixing the first
Related
error in processing request error text: error (rejected) it seems that the connection to the server is been lost. Please check your network connectivity and server status.
This is the type of error that I am facing while working with a website hosted in an AWS instance.
Now, I have changed the auth_type to 'cookie', and added a username and password in the config.inc.php file, in PHPMyAdmin.
can't figure out the actual problem, cause if I try to update an entity attribute, it works absolutely fine, while trying to delete entity results in an error.
WP version 5.5.3 - updated days ago
php version 7.3.24
running locally on server
Can not create a backup using duplicator
Occours bothi inside WP admin pages, so internal connections and external through php requests
I am suddenly receiving the following error but have not made any changes to any file on the server, nor within wp itself -
WordPress database error: [Access denied for user 'database-name'#'localhost' (using password: YES)] .
THIGNS I HAVE DONE TO FIX -
I have verified the wpconfig password and the db password match. I actually re-updated the db by copying the password listed in the wpconfig file and pasting it to the db.
Searched a lot of solutions on here
checked that the db is up and running by logging in using MYPHPADMIN
What am I missing and how do I get to the root of the issue that is causing this? No console errors are shown.
Have you considered the possibility of for the likes of using an online SQL instance such as AWS RDS, given the correct permissions for the database to be accessed, or are you running it locally?
I installed the php script and all wen well but the problem is at the final step, when I need to fill the database information, when I field the database information I find that i am getting an error that says "Error connecting to SQL host", so I try and try in different ways but there is no solution, nevertheless, I installed the same script on my localhost and all went well without problems, my Hosting Provider is: Siteground
Filling Database Information Image
Showing the Error Image
You must grant write permissions to the connect.php file for the user who is running the web service for example apache.
Have you ssh access to the server?
If your application cannot connect to the database you should make sure that:
Your application is using the correct MySQL hostname: localhost
Your application is using the correct MySQL database / username /
password.
Don't forget to specify your MySQL username and database with the
prefix yourusername_ in front of its given name. For example, your
cPanel username is siteground and you have named your database
joomla. In this case you have to refer to your database as
siteground_joomla;
Source: https://www.siteground.com/kb/my_script_cannot_connect_to_my_database_/
Another good idea would be to try to use your cPanel username and password for the Database User and Database Password. This will rule out whether you have granted all privileges to your database user.
Also you should change the permissions of your connect.php file to 755, as if you set them to 777, this will cause an internal server error.
I have a server hosted on 000webhost.com
In the file manager there is a public_html folder where I store my website files, but no \usr folder.
Generally I could just access this file through the command line or terminal but this is not the case on this server. Unless there are command line tools that I simply couldnt find (I know it is a linux server);
I ran phpinfo() and the configuration file path was in usr/local/lib but I have no idea how to access that.
Any ideas? Thanks in advance.
Go to http://www.000webhost.com/faq.php look at the section on connecting to MySql. Your solution is likely there.
Here is a synopsis:
If you cannot connect to MySQL server, there could be some causes:
- Incorrect MySQL hostname.
Never use 'localhost' as your MySQL hostname! You can find your MySQL hostname by logging on to members area, entering control panel and clicking on MySQL icon.
- Incorrect MySQL username / password or database name.
You can find / setup MySQL username and database by clicking on MySQL icon from control panel. And you can change MySQL password by clicking on phpMyAdmin icon.
- Database failed to setup.
In a very rare cases MySQL database can fail to setup. To confirm this, please try to enter phpMyAdmin for any database. If you see database there, that means it setup was successful. And if you get access denied error by trying to enter phpMyAdmin, please delete the database and setup the same MySQL database again.
Please note that always you must give about 1 minute for any changes to apply on server.
If you still unable to connect to MySQL you check if it is server or your script problem in this way: if you can enter phpMyAdmin and see you database there, that means everything is working fine on our side. It's a problem with your PHP script.
I've write a web-application in PHP which has 30 tables+views. From time to time my application doesn't work and think this is related to the mysql db.
Unfortunately I can't see the errors from the browser on that server because php.ini says so. Also when I try to connect to mysql db using phpMyAdmin the connection fails when I try to select my DB.
How can i see which is the problem to my mysql DB. It works from time to time but I don't understand why.
You could look in the MySQL error log - it's under /var/log/mysqld.log on my setup...
Your PHP errors may be getting sent to another log file - try the Apache / IIS error log (global or for the particular vhost, depending on your config for Apache - I can't say for IIS) or to the system log - /var/log/messages