Jump to content
  • 0

[Request]Free webhosting that can connect with php to mysql.


Thelasthero

Question

Guys, i tried to connect my php site to 000webhost.com (free), but it said that free webhosting is not allowed to connect. Can you tell me a site with free that it is allowed?

Link to comment
Share on other sites

Recommended Posts

  • 0

You want to connect to the MySQL server, right?

 

 

Now, tell me where the mysql server is installed...(home?)

Ok listen.

I installed mysql and configured and to allow remote connections.

Installed my database etc.

Made new user as you told me to.

Then i put these in config.php and can't connect.

Mysql is to home, and i want to check out the site etc.

Link to comment
Share on other sites

  • 0

Everything's ok, where's the problem?

You want: l2unique.net84.net (REMOTE MACHINE) to connect to your MySQL server and get data from it.

 

But this machine needs your IP to find you over the internet.(WAN IP, get it here)

 

 

You're still confused...

 

 

 

$hserver="YOUR IP"

Link to comment
Share on other sites

  • 0

Everything's ok, where's the problem?

You want: l2unique.net84.net (REMOTE MACHINE) to connect to your MySQL server and get data from it.

 

But this machine needs your IP to find you over the internet.(WAN IP, get it here)

 

 

You're still confused...

 

 

 

$hserver="YOUR IP"

:(

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'thelasthero'@'localhost' (using password: YES) in /home/a9522426/public_html/config/_config_procs.php on line 3

 

with my wan ip to hserver

Link to comment
Share on other sites

  • 0

sorry, I missed this one:

$L2JBS_config["mysql_host"]="localhost"; (change localhost to WAN IP)

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '94.64.246.117' (4) in /home/a9522426/public_html/config/_config_procs.php on line 3

 

Link to comment
Share on other sites

  • 0

your line 3 is this

 

$L2JBS_config["mysql_port"]=3306; // MySQP port

 

are you use that your mysql port is 3306?

line 3 in _config_procs.php it says not in config.php

Link to comment
Share on other sites

  • 0

Are you sure you've forwarded the port properly?

Also, you're not behind a firewall?

[gr]File, dn fteei to port to exw kanei forward, einai ola opos eprepe na einai[/gr]

Link to comment
Share on other sites

  • 0

Κάντο GR το topic γιατί μόνο Έλληνες μιλάμε.

 

Κάποιο 'πρόβλημα' με τον router είναι.

Έχεις κάνει προώθηση για την 3306; Σε ποιά πρωτόκολλα;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock