#1 April 22, 2016 8:00am

userbot
Member
Registered: April 22, 2016
Posts: 31

Could not connect to MySQL server in Hosting

mysql - 5.6.25-73.1  (mysqlnd 5.0.12-dev - 20150407)

PHP -     7.0.0

apache2handler
Work in    FreeBSD web1202.nic.ru 8.3-RELEASE-p4 FreeBSD 8.3-RELEASE-p4 #4: Thu Jan 30 00:00:49 MSK 2014 root@web1190.nic.ru:/usr/obj/usr/src/sys/HNIC-IBM pl#32 i386

Modules-     Core, date, libxml, pcre, Reflection, SPL, hash, session, apache2handler, standard, iconv, PDO, mbstring, json, mcrypt, ftp, xmlwriter, sockets, openssl, mysqlnd, xml, curl, mysqli, zlib, SimpleXML, filter, pdo_mysql, timezonedb, zip, gd, tokenizer, dom, xsl, ctype, soap, xmlreader

Offline

#2 April 22, 2016 8:51am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Could not connect to MySQL server in Hosting

It's possible you might be experiencing the same thing as this GitHub issue:
https://github.com/bigtreecms/BigTree-CMS/issues/241

I'd try checking the "Connect via Socket or Alternate Port" checkbox and entering 3306 for the "Port" and seeing if that fixes it.

Offline

#3 April 22, 2016 8:55am

userbot
Member
Registered: April 22, 2016
Posts: 31

Re: Could not connect to MySQL server in Hosting

It works, thanks !

Last edited by userbot (April 22, 2016 8:57am)

Offline

#4 April 22, 2016 8:57am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Could not connect to MySQL server in Hosting

I'd try different variations of localhost connections:
- "localhost" as hostname
- "127.0.0.1" as hostname
- Connect via socket

Depending on how MySQL is installed sometimes PHP doesn't know where/how it should connect to a local MySQL server.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.