Re: Tutorial - How to create a MySQL Login Application
Posted: Sun Feb 28, 2010 8:40 pm
marve25 wrote:can you make a tut on how to setup the MySQL, got a lot of errors on itYes, It is very easy.
There is only a few things that need to be done other then installing MySQL to your computer.
1.Install MySQL 5.x.x
2.Open the Port: 3306 in your Firewall - Sometimes you have to do this because the install software doesnt.
If you are wanting other people from the Internet to connect and use your MySQL server then you need to
PortForward or IP Passthought, your external IP to your MySQL server.
(Dont ask me, Because I DO NOT know your modem type or ISP information)
This is also known as your WAN Address and a function your are configuring is called DMZ Mode.
So the DMZ needs to point to your computer.
After you have done this, Re-BOOT your computer so it can change to its new IP Address.
Now, serch for my.cnf (c:\Program Fles\MySQL\...my.cnf) find the line that says:
bind-address = 127.0.0.1
change this to
bind-address = 0.0.0.0
Save my.cnf close your editor.
open a CMD Prompt type: mysql /restart
This will restart the mysql server with its new settings.
NOTE
IF you do not want to allow internat connections to you mysql sever, (Which can be very dangerous if allowed)
Then just install MySQL Server and set the Username and Password for the root User.
Thats it.
To find your ip address:
Open a CMD Prompt: type ipconfig /all HIT ENTER
Look for a line that says IP Address: ###.###.###.###
This will be the IP Address that the MySQL Server will be listening to for connections.
I hope this helps. ON a scale to
1 - being easy
10 - being a nightmare
I give this a 4 or 5 because of having to configure your modem.
Enjoy;
Scottie