FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


My Sql does not work at all.





[FuN]goku
ok mysql is really screwed and wont work.. when i add a user to the db it gives me this message

Quote:
Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:fungoku_work:localhost","fungoku_","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "fungoku_", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("fungoku_work");
althalus
That's just the example connections you get when you have added the user to the database. Whether you use perl or php you'd use that code (with modifications) to connect to the database in a script.

I'm not that great with mySQL, but I hope that answers your concern. Smile
orno
create the database and the users for it through cPanel...then just adjust the parameters in the web app u want to use the database for
Related topics
FTP problems --> Use Filezilla and/or active mode
How to create a dynamic PHP website.
lights behind the tv
Know ur age!!!
I wanna buy a new ADSL modem
How do I get favicon to show up?
Content management systems
microsoft word bug
MySQL error 1604
Why doesn't my cronjob work?
Drying clothes in the microwave
What does it take to convince yourself something ?
does javaScript code runs on selected browsers?
Array Update SQL script not working
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.