CodeIgniter 3 Database connects to own IP - mysql

I am trying to connect to an external database using the CodeIgniter 3 framework. When I enter the database details in Codeigniter's database settings I get the following message:
Message: mysqli::real_connect(): (HY000/1045): Access denied for user '{username}'#'{HomeIP}' (using password: YES).
While I have set in the database settings that it should connect to an external database, it does not. It then tries to connect to the ip adress of where I live
I have already tried the following things:
Disable firewall
Connect via hotspot (then it tries to connect to ip of service provider)
When I use my phone to go to the website it does succeed in connecting, it is then most likely in the settings of my Macbook Pro (Big Sur)
Does anyone have an idea what it could be?

Enable remote database access on the database source.
That's why you're getting that message.

Related

Can't connect to to siteground database with SQL

I'm trying to connect to my siteground native database, but I'm getting this error:
ER_ACCESS_DENIED_ERROR: Access denied for user
'root'#'cpc1234569-man6-2-1-cust215.7-1.cable.virginm.net' (using
password: YES)
when I try to make a query. I'm connecting via mySQL's VSCode plugin.
I've entered my public IP address in to Siteground's remote access host section, but I'm still being denied permission. Any ideas?
I solved it by creating a new database access account within the siteground tools page. There must have been something wrong with the credentials of the previous account passed on to me by my colleague. It worked smoothly from a new account.

MySQL Server Connection in PhpStorm 2016

This seems like the most annoying thing in the world, but for some odd reason, I'm not able to connect my MySQL DB in PhpStorm (as a data source). It constantly tells me that the user/password combo is incorrect. Here's the complete error message:
The specified user/password combination is rejected: [28000][1045] Access denied for user 'my_username'#'localhost' (using password: YES).
I know for a fact that my credentials are correct. I've checked and double checked. Even created a few new users.
I know that the credentials are correct because the application I'm writing is successfully connected to this DB.
And, as an FYI, the DB I'm trying to connect to is hosted on GoDaddy (shared CPanel Linux hosting).
PS: I've also tried using my website's IP as the host to no avail.

Encounter error while trying to login Azure virtual machine through mysql

I created a VM in azure. Deployed my asp .net mvc application. Installed MySQL and restored my database. now when I login in my application I get the following error
•Invalid DB Connection. Please Check - the errorAuthentication to host '' for user '' using method 'mysql_native_password' failed with message: Access denied for user ''#'fe80::5104:58d5:a59f:8159%11' (using password: NO)
I supplied the correct user id and password in my application. But still I don't know why it is giving error. I also set Limits to host matching setting to %. I checked what this fe80::5104:58d5:a59f:8159%11 and it looks like its link local ipv6 address. Any help would be appreciated?

connect to mysql database using visual studio 2010 remotely

I am trying to connect to MySql db using VS2010. I added my ip address in cpanel allow hosts. I also grabbed the IP address for the server where the database is hosted which is just my website.
So I go to server explorer, right click database connections and clicked on add a connection
I select .NET Framework Data Provider for MySQL for Data Source
for Sever Name I typed the IP address for my website where the Database is
Typed in the user name and password who has all the privileges, and entered the Database Name too.
When I hit test connection I always getting "Unable to connect to any of the specified hosts"
any advice is appreciated
Thanks
So, in order to connect to a MySql database from VS2010 see the link bellow:
http://www.itcsolutions.eu/2010/09/09/how-to-connect-to-mysql-database-from-visual-studio-vs2010-problems-with-net-connectors/
Have you tried adding % as your access host under Manage Remote MySQL Access of your Cpanel?
Try this
http://zambalestechrealm.wordpress.com/2012/03/08/vb-net-remote-access-to-mysql-database-of-my-website-2/
It says
Goto Your site Cpanel, and look for MySQL remote access, in my case i put % in the list of user to access remotely to my database. ‘%’ percent means to allow all connection to connect to my MySQL database.

Connecting Funambol to MySQL on remote host

I am setting up Funambol 8.7 on a Linux host (using Amazon AWS). I need to connect to a MySQL datbase that is hosted on a different server.
Per the administration guide I went ahead and downloaded the mysql connector and placed the jar in /opt/Funambol/tools/jre-1.6.0/lib/ext. I changed the install.properties file as follows:
dbms=mysql
jdbc.classpath=/opt/Funambol/tools/jre-1.6.0/jre/lib/ext/mysql-connector-java-5.1.14-bin.jar
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://myserver.net/rugcutte_funambol?characterEncoding=UTF-8
jdbc.user=rugcutte_funambo
jdbc.password=funambol
THen I try to run the install, but get the following error:
/opt/Funambol/ds-server/install/install.xml:452: java.sql.SQLException: Access denied for user 'rugcutte_funambo'#'ec2-50-16-233-200.compute-1.amazonaws.com' (using password: YES)
It appears my AWS instance can connect successfully to my MySQL database however it is trying to login with a fully qualified user name that is incorrect: rugcutte_funambo'#'ec2-50-16-233-200.compute-1.amazonaws.com
I tried also to change the line to : jdbc.user=rugcutte_funambo#myserver.net . But I got a similar error with that as well.
I am relatively inexperienced to JDBC. What is the proper way to set up this section of the install.properties file?
Did you enable access to that database with that user from that server?
What happens if you try and just make the same mysql connection from the command line from your Funambol server?
Thanks Adam.
You led me to the correct answer. The remote host has an area in cPanel to configure Remote Database Access Hosts. So I did, need to add my source host that is running Funambol, to my list of access hosts.
After this I ran the install and it did, appear to create the tables properly in the database running on my remote host.