Welcome Guest, Not a member yet? Register   Sign In
About the hostname for mysql
#2

(07-14-2015, 01:14 PM)drhowarddrfine Wrote: The hostname of my system is "bob" when I echo $hostname. So I set up mysql and database.conf with that hostname. Now I read that, typically, mysql will use 'localhost' as the hostname.

Since I'm having "blank page" problems with CI 2.1.3, could I have messed things up by doing that with the hostname? On top of that, I've forgotten how I set mysql to that hostname in the first place (or did it get it from the system?).

It could be as simple as setting the hostname in the CI configuration:

 /application/config/database
Code:
...
    'hostname' => 'localhost',
...
That should point to IP 127.0.0.1 on your local server (not your system)
CI 3.1 Kubuntu 19.04 Apache 5.x  Mysql 5.x PHP 5.x PHP 7.x
Remember: Obfuscation is a bad thing.
Clarity is desirable over Brevity every time.
Reply


Messages In This Thread
About the hostname for mysql - by drhowarddrfine - 07-14-2015, 01:14 PM
RE: About the hostname for mysql - by twpmarketing - 07-14-2015, 02:03 PM
RE: About the hostname for mysql - by CroNiX - 07-14-2015, 05:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB