SA-MP Forums Archive
mysql plugin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: mysql plugin (/showthread.php?tid=626775)



mysql plugin - Ahmed21 - 20.01.2017

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;




Respuesta: mysql plugin - Eloy - 20.01.2017

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


Re: mysql plugin - azzerking - 20.01.2017


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.