MySQL connection always failed!
#2

Correct parameters for mysql_connect in R40+ are
Код:
mysql_connect(const host[], const user[], const password[], const database[], MySQLOpt:option_id = MySQLOpt:0)
just switch between MYSQL_DATABASE and MYSQL_PASSWORD in your code
Код:
mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE);
https://sampwiki.blast.hk/wiki/MySQL/R40#mysql_connect
Reply


Messages In This Thread
MySQL connection always failed! - by DuyDang2412 - 28.02.2017, 05:53
Re: MySQL connection always failed! - by X337 - 28.02.2017, 05:59
Re: MySQL connection always failed! - by DuyDang2412 - 28.02.2017, 06:02
Re: MySQL connection always failed! - by Dayrion - 28.02.2017, 06:04

Forum Jump:


Users browsing this thread: 3 Guest(s)