SA-MP Forums Archive
How to host MYSQL with localhost - 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: How to host MYSQL with localhost (/showthread.php?tid=473995)



How to host MYSQL with localhost - Moneymachine - 05.11.2013

So, how can i host MYSQL of my server using localhost? (RP server)

Add me in skype:jike123451 ---> Because, im sure i dont know how to host it with only reading a comment of yours

It would be nice if someone would have the time to help me with this.


Re: How to host MYSQL with localhost - Delta 4 - 05.11.2013

Ur server must have a mysql server


Re: How to host MYSQL with localhost - Moneymachine - 05.11.2013

If someone who can do the hosting, could add me in skype, it would be awesome!


Re: How to host MYSQL with localhost - Alex Magaсa - 05.11.2013

Using XAMMP (For localhost mysql connections) here's my tutorial:
Quote:
Originally Posted by Alex Magaсa
Посмотреть сообщение
1. Download XAMMP (Download it here)
2. Open XAMMP Control Panel and "Start" Apache & MYSQL:
Код:
5:14:20 μμ  [Apache] 	Attempting to start Apache app...
5:14:20 μμ  [mysql] 	Attempting to start MySQL app...
5:14:21 μμ  [mysql] 	Status change detected: running
5:14:26 μμ  [Apache] 	Status change detected: running
If you see this messages it means Apache & MySQL started.
3. Open your Internet Browser and type on URL [ http://localhost/ ] it will appear the XAMMP Control Panel. (Version: 1.8.2)
4. Go to Tools > phpAdmin and you will redirect to localhost and upload the .sql file in any database you create.

5. Go to Server > The Script That Containes the MYSQL (open it and find this lines
Код:
#define SQL_HOST "host"
#define SQL_USER "root"
#define SQL_PASS "password"1
#define SQL_DB "database"
6. Add your mysql DB/User/Pass and Start server and Have fun !