Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsZymic Free Web HostingDatabases & MySQL right
  Reply to this topic Start new topic
left right
the alternative
post Jun 27 2009, 03:51 PM
Post #1


Newbie
*

Group: Members
Posts: 1
Joined: 16-May 09
Member No.: 95,281



this is the code in my connection:

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_online = "localhost";
$database_online = "comx";
$username_online = "root";
$password_online = "";
$online = mysql_connect($username_online, $password_online) or trigger_error(mysql_error(),E_USER_ERROR);
?>

i have already uploaded this one at zymic.com...however, whenever i try to run the pages online, it doesn't go through..i get the following error messages:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'root' (4) in /www/uuuq.com/c/o/m/comx-online/htdocs/Connections/online.php on line 9

Fatal error: Can't connect to MySQL server on 'root' (4) in /www/uuuq.com/c/o/m/comx-online/htdocs/Connections/online.php on line 9


i hope to get a reply soon...i need this badly..thanks!

Go to the top of the page 
 
  + Quote Post
Ed
post Jun 27 2009, 05:25 PM
Post #2


Outrageously Uber Ninja
*******

Group: Administrators
Posts: 2,529
Joined: 11-March 07
From: UK
Member No.: 9



You need to create a database, a database user and a database password, see here:
http://screencasts.uuuq.com/creating-a-database/
Go to the top of the page 
 
  + Quote Post
 Reply to this topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 22nd November 2009 - 03:46 AM