MySQL Error
#1

I am getting this error when i launch my server on windows:

PHP код:
[debugRun time error 19"File or function is not found"
[debug]  mysql_real_escape_string
[debug]  mysql_query
[debug]  mysql_store_result
[debug]  mysql_num_rows
[debug]  mysql_fetch_field
[debug]  mysql_free_result
[debug]  mysql_insert_id
[debug]  mysql_fetch_row
[debug]  mysql_init
[debug]  mysql_connect
  Loaded 6 filterscripts
.
[
debugRun time error 19"File or function is not found"
[debug]  mysql_real_escape_string
[debug]  mysql_query
[debug]  mysql_store_result
[debug]  mysql_num_rows
[debug]  mysql_fetch_field
[debug]  mysql_free_result
[debug]  mysql_insert_id
[debug]  mysql_fetch_row
[debug]  mysql_init
[debug]  mysql_connect 
Help me fix this
Reply
#2

File or function is not found means that you are trying to use a nonexistent function in a plugin. Getting the correct include and plugin version will fix it.
Reply
#3

I have all the correct plugins and includes but whenever i try the original plugin of MySQL.dll it says Windows not compatible with this version etc.

But i am Running Windows 10, Quad Core -_-
Reply
#4

If you had the correct version, it wouldn't give you those errors.

https://github.com/pBlueG/SA-MP-MySQL/releases

Download the version your script uses again, and replace the files you got. Remember to add libmysql.dll to your server's root directory.
Reply
#5

How do i check what version does the script uses?

Код:
Sorry For My Stupidness
Reply
#6

Based of the functions it uses, or open the include file (pawno/include/a_mysql.inc) and see what version it is. If the gamemode compiles with the include you're using, then it's most likely the correct include. Hence, correct MySQL version.
Reply
#7

It compiles with any version of MySQL but when i run it, just doesn't work
Reply
#8

Now I get this error:
[MySQL] Error (0): Failed to connect. Access denied for user 'root'@'localhost' (using password: YES).
Failed to connect. Access denied for user 'root'@'localhost' (using password: YES).

And Another:
[MySQL] Error (0): Function: mysql_query called when not connected to any database. Access denied for user 'root'@'localhost' (using password: YES).
Function: mysql_query called when not connected to any database. Access denied for user 'root'@'localhost' (using password: YES).
Reply
#9

Make sure you type the right DB Detalis :C
try to use this instead of localhost
172.0.0.1
Reply
#10

If you're using BlueG's MySQL R40, the update switched the database and password parameters around, so you may be using your database as your password by accident.

PHP код:
mysql_connect("127.0.0.1""root""mydatabase""mypass"); 
is now
PHP код:
mysql_connect("127.0.0.1""root""mypass""mydatabase"); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)