Author Topic: whos online  (Read 360 times)

0 Members and 1 Guest are viewing this topic.

Offline Johnmac

  • Senior Contributor
  • ****
  • Posts: 170
    • Westminster Massachusetts Weather
whos online
« on: July 22, 2018, 08:36:46 PM »
I am attempting to set up the whos-online script. I believe I have worked through all but one error. I have searched through the forum and am no more confused. Based on review in the forum, I believe I now have the most updated files.

The error I get is -

Warning: mysqli_connect(): (28000/1045): Access denied for user 'xxxxxx'@'localhost' (using password: YES) in /home2/scannor1/public_html/whos-online/include-whos-online-header.php on line 120
Could not connect: Access denied for user 'xxxxxx'@'localhost' (using password: YES) (Removed the actual user name).

I believe the issue is with this portion of the settings file -

// mysql database settings (you must already have a mysql database)
$C['dbhost'] = 'localhost'; // host
$C['dbname'] = 'scannor1_whosonline'; // database name

Should the dbhost name be something other than local host? and should the username be @something other than local host?

Any suggestions would be appreciated.

Thanks,

John
John
Westminster, MA USA

Offline BigOkie

  • Forecaster
  • *****
  • Posts: 1367
  • Tulsa, OK
    • KOKTULSA13
Re: whos online
« Reply #1 on: July 23, 2018, 05:34:46 AM »
Does your hosting plan include MySql support? If so, it should tell you what host name to use. It may or may not be localhost.

Sent from my MHA-L29 using Tapatalk

Current setup: Davis Vantage Pro 2 Plus Wireless
Weather radios:
Reecom R-1650
Sangean CL-100
Uniden Home Patrol I

Offline Johnmac

  • Senior Contributor
  • ****
  • Posts: 170
    • Westminster Massachusetts Weather
Re: whos online
« Reply #2 on: July 23, 2018, 08:30:28 PM »
It turned out to be "localhost" for the path. Whos-online is working for the most part now. Had to correct a username issue to get rid of the last error. Still needs a little more tweaking.

John
John
Westminster, MA USA