Cant connect to mysql wtf?
Hello i dont understand i just cant connect to my own mysql.
Im running a plugin which conencts to mysql. But every time it says cant connect to mysql. What i have done. Added remote accces so that mysql server can accept acces from the server. Added all right information. #define MIX_HOST "mysql adress" #define MIX_USER "database username" #define MIX_PASSWORD "password" #define MIX_DATABASE "database name" I have tryied to test mysql connection. This code which uses mysqli works. PHP Code:
PHP Code:
So what do you think the problem is why cant amxx plugins connect to the mysql? Do i need changes in the plugin code so that it uses msqli instead of msql? |
Re: Cant connect to mysql wtf?
Hi. Your amxx plugin can't connect to the database?
Can you provide source code of that plugin? It's also better to use constants rather than defines. |
Re: Cant connect to mysql wtf?
Found out that my host didnt allow remote acces but it sed clearly in cpanel that its allowed.
|
| All times are GMT -4. The time now is 01:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.