So I want to do this, host my database in my computer and use it for a website that I have in another server.

I want to do this because the shared hosting limits my database connections to 25 and sometimes I get "exceeded connections" errors. I think I have enough resources to do this.

I've tried modifying my mysql .cnf, opening ports, etc, but I can't get it to work.

I'm going to host with wamp or xampp.

Any link/tutorial/advice would be appreciated.

link|improve this question
1  
This is a really bad idea, on so many levels. – ErikA Jul 8 '11 at 5:21
1  
Why not simply move to a host that allows more than a miserable 25 concurrent connections? – John Gardeniers Jul 8 '11 at 9:13
feedback

2 Answers

Advice: Don't. Just don't. The latency between your shared hosting provider and your local machine will degrade performance, and any connectivity or reliability problems at your local machine will cause your website to go down. If you've got good enough reliability to be able to handle the database, you should just host the whole site locally and be done with it.

link|improve this answer
feedback

Have you restarted the database ? ( restarted mysql server)

Debian/Ubuntu : /etc/init.d/mysql restart

if not some nice tutorials :

Debian/ubuntu : http://www.howtoforge.com/ubuntu_debian_lamp_server

Windows : http://www.1stwebdesigner.com/tutorials/how-to-setup-local-web-server-with-latest-apache-php-and-mysql-packages/

If you can't get it to work, try dissabling your firewall completely if you are connecting on localhost, see if it works. If it doesn't you can rule out that problem.

When connecting use localhost and not your external ip.

Also read this : http://support.tigertech.net/mysql

Also if you want easy access to your database try phpmyadmin.

link|improve this answer
None of these tutorials explains how to host and configure the MySQL to be accessible from the internet. I don't want to setup a full local website, I just want my database to be hosted in my computer and be accessed remotely by my application in my shared hosting. – Danny Jul 8 '11 at 4:50
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.