I have everything working on my raspberry pi and developing things for a new site for my farm. I have in the database.php file 'hostname' => 'localhost'; but when I change it to my static ip address that is all set up and working comming from the pi I get this error and do not know what to do from here. I have searched on the forum and web but no answer.
Here is the error I get.
Severity: Warning
Message: mysqli::real_connect(): (HY000/2005): Unknown MySQL server host 'http://66.109.223.155/' (2)
Filename: mysqli/mysqli_driver.php
Line Number: 161
Backtrace:
File: /var/www/html/grocerycrud/application/controllers/Examples.php
Line: 9
Function: database
File: /var/www/html/grocerycrud/index.php
Line: 292
Function: require_once
If you go to my pi now you will see it from anywhere but not when I go into my admin page which does work with localhost but not with my ip address.
I have also looked at the index.php file where you can set the base_path and that did not work as well.
HELP