William-B
asked on
Kohana MySQL connection problem
Hello,
I am currently using iPage to host a site I am developing. I am having a problem though with a connection to the MySQL server using Kohana. I am including the error message and my current database configuration in this message. I know it might just be a MySQL error given the error message, but I though I would include that I'm using Kohana just in case. I have contacted iPage to ask them about it, but their customer support is abysmal at best and it seemed that they really didn't have any idea what I was talking about, although I did manage to confirm that localxingcom.ipagemysql.co m was the correct server address. Unfortunately I can't include a link to the site as it is currently password protected and under development. I'm hoping that what I'm including will be enough information to at least steer me in the right direction. Thanks in advance.
Kohana Error Message:
Database_Exception [ 2 ]: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.so ck' (2)
Current database setup as contained in database.php:
return array(
'default' => array(
'type' => 'mysql',
'connection' => array(
'hostname' => 'localxingcom.ipagemysql.c om',
'username' => 'web_connection21',
'password' => '*************',
'persistent'=> FALSE,
'database' => 'main_table86'
),
'table_prefix' => '',
'charset' => 'utf8',
'profiling' => TRUE,
'caching' => FALSE
)
);
I am currently using iPage to host a site I am developing. I am having a problem though with a connection to the MySQL server using Kohana. I am including the error message and my current database configuration in this message. I know it might just be a MySQL error given the error message, but I though I would include that I'm using Kohana just in case. I have contacted iPage to ask them about it, but their customer support is abysmal at best and it seemed that they really didn't have any idea what I was talking about, although I did manage to confirm that localxingcom.ipagemysql.co
Kohana Error Message:
Database_Exception [ 2 ]: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.so
Current database setup as contained in database.php:
return array(
'default' => array(
'type' => 'mysql',
'connection' => array(
'hostname' => 'localxingcom.ipagemysql.c
'username' => 'web_connection21',
'password' => '*************',
'persistent'=> FALSE,
'database' => 'main_table86'
),
'table_prefix' => '',
'charset' => 'utf8',
'profiling' => TRUE,
'caching' => FALSE
)
);
ASKER
I'm assuming that it is running, I can access it from iPage's MySQL web interface (mysqladmin). I am not sure if this is related but I was trying to set up a connection to the database using MySQL Workbench which didn't work, but I was assuming that was more of a remote configuration error than a server one. At any rate it wasn't essential, just more of a convenience, so I didn't really follow up on it. According to the web interface: This MySQL server has been running for 33 days, 20 hours, 6 minutes and 6 seconds. It started up on Jul 17, 2014 at 01:51 PM.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Well it would seem that the problem has resolved itself. I checked early yesterday morning and I was getting the same error. I tried again yesterday afternoon and, without me doing anything, the message disappeared. Now I'm getting a message that my session is corrupt, but hopefully I can track down that problem. Thanks for your help, I guess it's too bad that I don't actually know what was wrong, but for the information for the future - full points.
Many thanks!
As to your session, a corrupt session suggests to me session cookies so delete them then reload the page...
As to your session, a corrupt session suggests to me session cookies so delete them then reload the page...
Can you confirm that the MySQL service is running?