Page 1 of 1

Can't connect to local MySQL server

Posted: Tue Apr 22, 2008 9:16 pm
by Marcelo

I'm new to your site. I was trying to install phpJobScheduler but I'm getting this message;

Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/m/a/r/marcelomg/html/phpjobscheduler/pjsfiles/functions.php on line 51

I followed the instalation procedures and added the database information so it looks like this;

define('DBHOST', 'localhost');//
define('DBNAME', 'name');//
define('DBUSER', 'user');//
define('DBPASS', 'password');//

What am I doing wrong?


Posted: Wed Apr 23, 2008 6:00 am
by davidgwalker

Sounds like your host does not support MySQL.

Get your site hosted with a server with MySQL such as:

Someging strange with

Posted: Mon Apr 28, 2008 2:00 pm
by triak
I edited the config file to match the user and database created on our local mysql server.
But when I try to access the scheduler I get the following error message:

Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/phpjobscheduler/pjsfiles/functions.php on line 51

So the variables are not read correctly.
If I dont edit the file, wont start at all (obviously).

What could cause this?