Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 Jun 2016, 23:34
funyoo funyoo is offline
 
Join Date: Feb 2009
Access denied when executing a SQL query from a plugin

Hi,

I get this message when I enable the following plugin :


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Access denied for user 'www-data'@'localhost' (using password: NO)

What could be the reason ? everything is working otherwise, the board, as the SQL queries from Maintenance > Execute SQL Query.
Reply With Quote
  #2  
Old 23 Jun 2016, 01:33
ForceHSS's Avatar
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Your password is wrong check your config.php in your includes folder
$config['MasterServer']['password'] =
Reply With Quote
  #3  
Old 23 Jun 2016, 13:34
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
That's also not how you execute queries within vbulletin. You need to go through the db object to make the query. Take a look at any vbulletin page and see how it's done.
Reply With Quote
  #4  
Old 23 Jun 2016, 15:06
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Its failing because you are using completely the wrong method to access the database.

As posted above, you need to use the $db object within vbulletin, not raw calls to mysql_query().
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:42.

Layout Options | Width: Wide Color: