mysql plugin
#1

Hello everyone,

I've run my gamemode, I've scripted it like two years ago, it uses the include file "mysql" (not a_mysql), and the plugin mysql.dll

When I run the server on my localhost, it says: Access denied for 'root'@'localhost' ....

Here's OnGameModeInit callback:

PHP Code:
public OnGameModeInit()
{
    
connection mysql_init(LOG_ONLY_ERRORS1);
    
     
mysql_connect("localhost""root""""cnr"connection1);
     return 
1;

Reply
#2

Check if the virtual host allow your connection or change your password root user
Reply
#3


1. Make sure your MYSQL server is running
2. Make sure the password and account is correct
3. Make sure you have granted access for the user to connect locally
4. Make sure you have access to the table and the commands ( SELECT, UPDATE, DELETE, INSERT )
5. Try accessing the database from another source.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)