SA-MP Forums Archive
MySQL R41-4 connection - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL R41-4 connection (/showthread.php?tid=656940)



MySQL R41-4 connection - Daynox12 - 28.07.2018

I'm using MySQL version R41-4 in windows, I want to connect it to localhost.
I am testing with the same purebred code that creates the database that comes in the mysql plugin but when turning on the server does not connect to the database, I have the wampserver installed also try to change the password but no.

Help me, I do not know how to connect it.


Re: MySQL R41-4 connection - Heress - 28.07.2018

Did you have created your database with phpMyAdmin and created saving lines?


Re: MySQL R41-4 connection - Jose_grana - 28.07.2018

In windows it does not have a key in mysql.


Re: MySQL R41-4 connection - augustogdo - 28.07.2018

WAMP comes with no password for the root user.


Re: MySQL R41-4 connection - Daynox12 - 29.07.2018

I already managed to connect, what I did was create a database in the phpMyAdmin with the name of the database, without using table CREATE TABLE IF NOT EXIST within the gm, I did not know, is it correct what I did?


Re: MySQL R41-4 connection - Rufio - 29.07.2018

It's not "needed" so to say to have CREATE TABLE IF NOT EXISTS in your gamemode, your gamemode will work just fine without it. However, it's always a good practise to have it as it'll create the table for you if you forget about creating it somehow.


Re: MySQL R41-4 connection - Libbyphay - 29.07.2018

Quote:
Originally Posted by Daynox12
Посмотреть сообщение
I'm using MySQL version R41-4 in windows, I want to connect it to localhost.
I am testing with the same purebred code that creates the database that comes in the mysql plugin but when turning on the server does not connect to the database, I have the wampserver installed also try to change the password but no.

Help me, I do not know how to connect it.
https://sampforum.blast.hk/showthread.php?tid=656945
I think you same as me.