The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Scheduled task not working
I have a scheduled task on my site. I set it up through admincp.
When it runs I get this error: Code:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in [path]/vbbot.php on line 112 Unable to connect to mysql server. Code:
$connect = mysql_connect($config['MasterServer']['servername'], $config['MasterServer']['username'] , $config['MasterServer']['password']) or die('Unable to connect to mysql server.'); Code:
$dbconnect = mysql_select_db($config['Database']['dbname'], $connect) or die('Unable to connect to the db'); Can someone please help me? |
#2
|
||||
|
||||
Why are you not just using standard vb code to do your mysql queries?
PHP Code:
|
#3
|
||||
|
||||
Inside vBulletin Scheduled Tasks, the vBulletin engine is already initialised. Therefore, (nearly) all objects/functions/methods/variables that exist in a "normal" initialisation are available to you. One of these is the database class (as pointed out by Lynne).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|