473,473 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

problem with MySQL connection in free webserver

29 New Member
does anybody have try [LINK REMOVED]?
i cant connect with mysql in that server. event i was ask the support. dont give me a good solution. i was have twice answer with same answer,and i have do anything that give me.still cant connect. anybody know? what webserver that's free n really good to try? i was a newbie in PHP. thanx for all
Mar 14 '08 #1
11 1315
ronverdonk
4,258 Recognized Expert Specialist
Welcome to The Scripts!

What do you expect from our members when you don't suppply any information except 'it doesn't work'?

How did you setup MySQL, can ytou use phpAdmin to connect, (in case) what is the userid/password that the provider gave you, etc. etc. Please specify anything you did with samples and responses. Only then we can try to help.

Ronald
Mar 14 '08 #2
wireshark
29 New Member
so...the admin give me cpanel account a2840013 and the name of database i make is "Database".i have make a user account to that database. with name "a2840013_guest" with no password to for that user.

<?
$host="64.191.112.53";
$user="a2840013_guest";
$password="";
$con= mysql_connect($host,$user,$password) or die ("Cannot Connect
1");
mysql_select_db("a2840013_Database",$con) or die ("Cannot Connect
2");
?>
and the result is i cant used that database,i was denied.
please help me.... thank you...
Mar 15 '08 #3
wireshark
29 New Member
another information...
i setup mysql from cpanel. and cpanel id= a2840013 with password ="richman196681". is there anything more u need to know to help me? please confirm me... thank you...
Mar 15 '08 #4
nomad
664 Recognized Expert Contributor
another information...
i setup mysql from cpanel. and cpanel id= a2840013 with password ="richman196681". is there anything more u need to know to help me? please confirm me... thank you...
what permissions did you give to a2840013_guest.

nomad
Mar 15 '08 #5
wireshark
29 New Member
what permissions did you give to a2840013_guest.

nomad
thanks for your reply
i give select,delete,update,insert,index,and create a temporary tables permisions...
maybe i suggest u try the webserver...its free... i really confuse to use it...
thank again...
Mar 15 '08 #6
ak1dnar
1,584 Recognized Expert Top Contributor
I tried the same Service provider. and the mySQl server is working fine there. why don't you try "localhost" instead of the IP "64.191.112.53". and make sure to grant the permissions to the created user first.
Mar 15 '08 #7
wireshark
29 New Member
I tried the same Service provider. and the mySQl server is working fine there. why don't you try "localhost" instead of the IP "64.191.112.53". and make sure to grant the permissions to the created user first.
i have make a grant the permissions. and change it to "localhost" but still having this problem. this the result at now.
Access denied for user 'a2840013_guest'@'localhost' (using password: NO) in /home/a2840013/public_html/a28400113/test.php on line 5

this my script...please tell me if i have something wrong with my script.
<?
$host="localhost";
$user="a2840013_guest";
$password="";
$cipai= mysql_connect($host,$user,$password) or die ("Cannot Connect 1");
mysql_select_db("a2840013_Database",$cipai) or die ("Cannot Connect 2");
?>

thank for all your reply and try helping me...
Mar 15 '08 #8
wireshark
29 New Member
thanks for all your reply...
i have solve this thing...hehehe....
please help me again next time if i confuse Again... thanks for all...
Mar 15 '08 #9
Markus
6,050 Recognized Expert Expert
thanks for all your reply...
i have solve this thing...hehehe....
please help me again next time if i confuse Again... thanks for all...
What was the problem?
Mar 15 '08 #10
ak1dnar
1,584 Recognized Expert Top Contributor
Sure he has added the PASSWORD instead of the blank password this time.
anyway hope to see you again. ;)
Mar 15 '08 #11
wireshark
29 New Member
Sure he has added the PASSWORD instead of the blank password this time.
anyway hope to see you again. ;)
hehehe... that was true... cause i want to try add new user with blank password. and it not work. so i realize...that user,must have a password. so i try it...and get a good result....:)
thank for all who help me.... :)
really great have a new experience... usual i use a Visual Basic.... and new in PHP. thank again....
Mar 16 '08 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Kayra Otaner | last post by:
Hi all, I want to get your opinions on how to increase available/free memory and performance on a heavy volume database server. I have MySQL 4.0.13 running on RH 7.2 replicated to another RH...
0
by: kayra | last post by:
Hi all, I want to get your opinions on how to increase available/free memory and performance on a heavy volume database server. I have MySQL 4.0.13 running on RH 7.2 replicated to another RH...
9
by: Brett | last post by:
I'm developing with CF 5 and SQL Server 2000. I think they are both great products. The major draw is their cost. I don't develop stand alone products because anyone that wants to purchase them...
1
by: James | last post by:
Hey everyone, I have a really obscure but impassable problem with a reasonably simple piece of php/PEAR DB/MySQL code When calling several stored procs the first call succeeds, but subsequent...
8
by: Jeff B | last post by:
Hello, Im learning PHP along with MySql. I installed MySql with no problem and have completed several tutorials to learn it. Now when trying to use PHP code within an html page it dosn't...
11
by: # Cyrille37 # | last post by:
Hello all, I come to you to getting help for managing multi threading and database connection. My project use Xml-Rpc to receive messages, so each call come from a different thread. Incoming...
4
by: Federico | last post by:
Hi everybody, I'm evaluating the possibility of using MySQL 5.0 as a database backend for an application we are doing and I'd like to have hardware requirements rough estimates and/or real world...
9
by: Dave | last post by:
Hi guys, I have just set up a duplicate server running: apache 2.54, mysql 5.04 and php 5.04 This is the same setup as as the server we are using now, apart from the hardware inside. I have...
8
by: geert | last post by:
Hi all, I have a mac mini running maocosx 10.5 leopard I want to deploy a django project on. My backend is MySQL, and I have it running as a 64- bit app. Of course, apache2 is also running as...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.