Any MYSQL wiki?
#1

For SA:MP...
Reply
#2

These?
https://sampwiki.blast.hk/wiki/MySQL_Tutorial
https://sampwiki.blast.hk/wiki/MySQL/R33
https://sampwiki.blast.hk/wiki/MySQL
Reply
#3

Even wiki is wrong lol
https://sampwiki.blast.hk/wiki/MySQL_Tutorial


This
Код:
forward ConnectMySQL();
public ConnectMySQL()
{
	mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS))
 
        if(mysql_ping() == 1)
        {    
            mysql_debug(1);
	    printf("[MYSQL]: Connection to `%s` succesful!", SQL_DB);
	} 
	else
	{
	    printf("[MYSQL]: [ERROR]: Connection to `%s` failed!", SQL_DB);
	}
	return 1;
}
This line:
Код:
mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS))
Shouldn't be this?:
Код:
mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
Reply
#4

Try up-to-date tut
https://sampforum.blast.hk/showthread.php?tid=627222
Reply
#5

As Smoke posted, use this wiki if you're using r40+ https://sampwiki.blast.hk/wiki/MySQL/R40
Reply
#6

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
Even wiki is wrong lol
Doesn't even have the error you showed on my browsing of it... Last edited 2010...
Reply
#7

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Doesn't even have the error you showed on my browsing of it... Last edited 2010...
http://imgur.com/a/thUx9
Reply
#8

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
It's fine here too lol
Reply
#9

He must not be seeing the double ), and focusing on the outdated example more than what he should.

The updated tutorials are out there, and handed to you, but seriously, why you end up with double ) is beyond me.
Reply
#10

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
He must not be seeing the double ), and focusing on the outdated example more than what he should.

The updated tutorials are out there, and handed to you, but seriously, why you end up with double ) is beyond me.
Because an old revision had mysql_connect() inside an if clause, and then sb decided to move it out without proper edits.
Just check page history, it is there for a reason. Jeez
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)