Mysql port problem
#1

Hi, I use mysql in my samp server

my samp version is 0.3x

MySQL default port is 3306 then but i want another mysql port

example i want mysql port 12345 my mode connect function is

mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB, SERVER_MYSQL);

but connect not setting port.. how can mysql another port?
Reply
#2

You would have to make your own plugin. e.g: make your own mysql_connect with a plugin, then just give it a different name.
Reply
#3

Get the plugin source code, edit the port there and recompile it.
Reply
#4

Why the fuck are you changing the port in SAMP?

you're supposed to change it in SQL/HTTPD settings.

Not sure whats the point of editing the SQL port anyway.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)