Mysql_connect Problem - Can't find what I must to type

free web hosting
Free Web Hosting, No Ads > General > Hosted Members Area

Mysql_connect Problem - Can't find what I must to type

sader
Hi moderators

What must I type here in php script

mysql_connect("localhost", "sader","***");
***-my forum password (the same password is and for host account)

I CANT connect sad.gif
So what is my host,user,pass

Reply

badinfluence
check this or admin note...

see whether the problem still exit or not. smile.gif

Reply

sader
QUOTE(badinfluence @ Jul 22 2005, 10:31 PM)
check this or  admin note...

see whether the problem still exit or not.  smile.gif
*


Thanxs for your replay those articles realy helped me
finaly I connected to database and my guest book worked smile.gifsmile.gifsmile.gif

thanks again

 

 

 


Reply

sader
O no it looks I still have problem.
Ye my guestbook now reads data but when I am trying to make post
into my guestbook (via submit button on form) I am getting this error


Warning: mysql_connect(): Access denied for user: 'root@xx.xx.xxx.xx (Using password: YES) in /home/sader/public_html/g_book.php on line 367

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/sader/public_html/g_book.php on line 368

Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/sader/public_html/g_book.php on line 372

I made accses host "%" but it didn't solve problem
so what I am doing wrong

Reply

sader
Problem fixed biggrin.gif

Reply

badinfluence
QUOTE(sader @ Jul 23 2005, 07:34 AM)

Warning: mysql_connect(): Access denied for user: 'root@xx.xx.xxx.xx (Using password: YES) in /home/sader/public_html/g_book.php on line 367

*



probably you didnt set the permission on db_user to respected db. anyway you solved the problem and glad that the script is running. one of the mod will close the topic.
one last, google it wink.gif

Reply

sader
QUOTE(badinfluence @ Jul 23 2005, 03:00 AM)
probably you didnt set the permission on db_user to respected db.

Actualy that and was my problem. Tnx again smile.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : mysql, connect, problem, type

  1. The Only Reason I Choose Ms Sql Server Rather Than Mysql
    (0)
  2. Cannot Connect With Ftp [resolved]
    Default account can, but not created FTP account. (3)
    I have a bit of a strange problem that someone here may be able to help with. I am preparing my new
    Trap17 account for my new site, and am setting up FTP access. I can login quite fine by using the
    default login details, using my cPanel username and password as my FTP login credentials. However, I
    have created a new FTP account using cPanel, giving access directly to the /public_html/ folder,
    with a username of webmaster. Below is the result of a Core FTP session, which shows that my
    password is not being accepted... Resolving ftp.travstatesmen.trap17.com... Connect ....
  3. Need Advice On Setting Up Mysql Database.
    I have a huge amount of daily data updates to be inserted. (3)
    First of all, to get the idea of what I am trying to achieve here, please have a look at my
    idea thread, entitled Idea For Using A Cron Job To Grab Daily Travian Map.sql Updates . This gives
    a prelude to the project, what it is for, what it is supposed to do, etc. Now, what I need is
    specific advice on setting up the mySQL database(s) to implement this idea. There is a useful FAQ
    file for how to make use of the map.sql data located on the help.travian.com website, which also
    gives an example of the CREATE TABLE instruction that matches the data in the map.sql fi....
  4. Mysql Db Is Down Getting Following Error
    (2)
    My Mysql is Down can I get some help please? Appreciate it. Patrick Domain: patrickcurl.com Error:
    phpMyAdmin - Error #2002 - The server is not responding (or the local MySQL server's socket is
    not correctly configured)....
  5. Problem With My Girlfriend Family, Need Suggestions For Action
    Problem with my girlfriend family, need suggestions for action (2)
    It's been nearly 3 months that I am in abroad for my future study. Many things happened
    /ohmy.gif" style="vertical-align:middle" emoid=":o" border="0" alt="ohmy.gif" /> in these 3 months
    back in my home country. I had a girl friend /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> and both of our parents know that we are seeing and
    dating each other and want to tie knot /tongue.gif" style="vertical-align:middle" emoid=":P"
    border="0" alt="tongue.gif" /> in near future. We desperately love each other. Everything is going ....
  6. Seeking Help With Javascript
    Need help with drag and drop type script (1)
    What i want to make is a script that has a table, which is a menu for my site, and when you click
    the top of the table you can drag it to another place in the page. This is the code: Test
    run - Right click menu - ŠJack McCrea 2008 <script type="text/javascript"> function
    coordinates(event) { if (event.button==2) { var x=event.x; var y=event.y;
    document.getElementById("element").style.left=x; document.getElementById("element").style.top=y;
    document.getElementById("element").style.visibility="visible"; var oldx=x; var oldy=y; } }
    <script type="....
  7. Terminating Hosting Problem
    (1)
    Well, a few days ago I terminated my hosting using the Credit System 2.0, but it still has me in the
    group on the forums, which is making my credits go down for nothing. I need this fixed please.....
  8. Browser Compatibility Problem With Firefox - Javascript + Css
    Having trouble making a script work right - any suggestions? (3)
    Hi, Im working on a website, and im trying to make a right-click menu, which opens on right click,
    wherever the cursor is, and closes on mouse out. I wrote the code below, and when i ran it in IE it
    ran fine, just how i wanted it to work. However in firefox, the menu just opened in the top left. im
    presuming this is because it doesnt like my style changing in the javascript. Any ideas, and
    suggestions? If i cant make this work, i will just make it so it works slightly differently when
    viewev in firefox so that it can just open in one place. All ideas appreciated. ....
  9. Domain Problem : This Is Important..
    (0)
    Hello all, This is important post, so please reply to it, i need the solution ans please don't
    mind my english. Afternic don't care about their own rules /mad.gif"
    style="vertical-align:middle" emoid=":angry:" border="0" alt="mad.gif" /> As some of you has
    already read in the afternic area, My friend have an issue with a domain bought through
    Afternic/NameMedia http://www.dnforum.com/f218/bought-d...ad-314697.html To be short, my friend
    bought a domain for $2500, and paid immediately. The owner contacted him saying that it was
    priced wrong (?) and t....
  10. A Problem With Ftp Clients
    I can't connect (9)
    I keep getting the message: "The requested name is valid and was found in the database, but it does
    not have the correct associated data being resolved for", after following tutorial instructions for
    Core FTP. If I try FileZilla, I never get automatically configured option in my sites section after
    following the istruction Resolved ....
  11. Installing Movable Type 4
    (1)
    Anyone here has tried installing Movable Type 4 on trap 17? I need a deatailed explanation, thanks.....
  12. Youtube People That Do Not Respect Other Opinions
    ...This problem on YouTube (7)
    Very, very annoying. I am happy YouTube user - I probably spend some hours there every week. I
    mostly look and listen to music but I also watch different shows. I always try to comment on
    videos, if I like the videos or not. So many users seem to have a motto that says "Don't like,
    don't watch." Well I have to watch it to know if I like it or not, right?! And that is not
    even the worst part. It is almost like some people think you should only comment if you like it, and
    if you have something else to say about it then you should glue your fingers together wi....
  13. Problem Getting Text To Align With Different Resolutions
    (4)
    Hey! I just like fiddling around with making websites, and I'm working on one at the moment.
    However, while I can the text box to align on the designated area on the background image on my
    monitor, I'm well aware that with other resolutions and web browsers, it doesn't. (I use
    Firefox) A buddy told me to looks up some CSS but I'm not very good with it at all. What do I
    need to do to get it to centre regardless of the screen resolution the viewer uses? The website is
    optimized for 1280x1024 resolution in Firefox.....
  14. How Many More Times Will I Have To Post About This?
    Problem just keeps lingering (11)
    I am wondering how many more times I will have to post about a problem that has been going on for
    far too long now. I know it might not help nagging about it here, but I have submitted tickets,
    which do not even get answered, while the problem happily lingers on. To be quite honest, I am
    really getting enough of it now. What are Xisto/Trap 17 up to? Ever since the server migration,
    there have been nothing but problems, and what is more, I am beginning to get the impression the
    powers that be could not care less, as they do not reply to your tickets, and the problems do ....
  15. Itunes Problem!
    Help!!! (1)
    OK I don't know if I'm putting this post in the right section of the site, I don't know
    but I'm just gonna plunge ahead and hope I get help soon. About 3 days, I figured out I had no
    Internet when I couldn't connect to the iTunes store, and then I figured out one of the cords of
    my computer had to be plugged into the router. I did that and it worked. However, for 3 days I have
    had no connection to the iTunes store. I have restarted my computer several times and reopened
    itunes. It says "iTunes could not connect to the iTunes store. The network connec....
  16. Problem Aligning In Firefox
    Problem aligning an image in Firefox. (9)
    Hello everyone! I am new here. /smile.gif" style="vertical-align:middle" emoid=":)" border="0"
    alt="smile.gif" /> I am looking for some advice...I've been fiddling around with my site for
    the last few hours and have had no luck! www.thelatency.com/test/tour_dates.php as you can the
    image header above all the text is aligned perfectly in IE and not in Firefox. Any ideas? Thanks
    so much in advance. /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif"
    />....
  17. Skype / Xampp Port Conflict
    How to overcome the problem (5)
    XAMPP is a software package which installs a copy of the Apache Server, Mysql, PHP and Perl onto a
    Windows computer and allows for local development of PHP and Mysql scripts without the need for
    uploading onto your Hosting account to test for errors, etc. A really simple to install set of
    softwares for those who need it. The manual install of all of these softwares can be difficult, but
    the Installer supplied by XAMPP reduces the difficulty factor down to a single download and
    essentially a one-click install. SKYPE is a software which allows using the Internet to make p....
  18. Laptop Keyboard Problem
    Dell Inspiron 6000 (7)
    First post on here and here it goes.... I got a laptop the "A" button now doesn't work. I pryed
    off the black top to check if any dirt or liquid is under there and cleaned it put it back on and it
    still doesn't work. I ordered a keyboard for my laptop off ebay. Now how exactly do i take off
    the old one and put a new one in? Thanks....
  19. Remote Assistance Problem
    Won't work (8)
    I have tried tons of times and i can not get it too work. I did't even know about this until
    Paul from Trap 17 used it to help me with something on my site. Whenever i try it, it never
    connects. I have tried all three ways. Email, MSN, and download the file and send it. Both computers
    are connected to the internet. On microsoft's site they have a lot of people with the same
    problem, but no one ever helps with it. They are all unanswered. Paul: If you read this i know you
    know how to do it.....
  20. Dvd Drive Problem
    It Wont Read Anything! (10)
    Recently my DVD drive was playing everything, today i put a dvd disk in, it says nothing comes up
    with no auto play or nothing loads at all. so i go to my computer and load from there, it dont load.
    It says please insert disk... Im like WTF so i put a cd disk in and the same exact thing happened. i
    tried about 7 different disks including cd and dvd disks and burned ones too. Nothing at all, So i
    go to google and check around for tuts on fixing this, it gives me this registry thing. Like delete
    lowerfilter and upperfilter in this folder. I do it, Still nothing happens, so....
  21. Php Header Problem
    i always got header problem (11)
    i really hate the header function it always get an error saying ( cannot ------- headers already
    sent by----- ) and here's my error: Warning: session_start(): Cannot send session cookie -
    headers already sent by (output started at /home/adly3000/public_html/Mail/index.php:5) in
    /home/adly3000/public_html/Mail/index.php on line 81 Warning: session_start(): Cannot send session
    cache limiter - headers already sent (output started at /home/adly3000/public_html/Mail/index.php:5)
    in /home/adly3000/public_html/Mail/index.php on line 81 Warning: Cannot modify header ....
  22. Subquery In Mysql
    (5)
    Is there anyway to make subqueries work in MySQL? I'm pretty certain someone out there knows
    how. /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> Can anyone help?
    CODE Select * from ITEMS where ID="Select Max(ID) from ORDERS"; This works
    for MSAccess and SQL Server but why not in MySQL? I'll be writing some reports and I've
    shifted database from MSAccess to MySQL. Help! Thanks.....
  23. Problem With Page Redirect
    Help me out with this problem... (8)
    hey ppl, i just wanted a little help...i designed this website, but i want that if i click on
    certain link, it should open new page for few seconds and then browser should automatically redirect
    me to some other page....i tried this with header() function but i couldnt do the wait n redirect
    part, ... so somebody plz help.... -thanx in advance! Thanks Avalon, topic changed. ....
  24. Connect To Remote Oracle Database With Toad
    i'm lost (7)
    Hey gang, long time no see, my bad! Anyway, I got me a question. Does anybody know how to
    connect to a remote oracle database using toad? When I read the docs for toad I get the impression
    that I have to have a local oracle installation in order to use toad, but that just seems silly. I
    guess I'm stuck at the point of trying to figure out how to tell toad where to look for all of
    the configuration information it needs for the connection if I don't have any "Oracle Home"
    directories. :crosses fingers: Peace!....
  25. How Fast Can You Type The Alphabet?
    Warning: addictive. (64)
    http://www.morpheme.co.uk/frenzy/ - This game is very addictive for me, but it is good practice
    for knowing where all the letters are if you are not that great at typing. Also if you have a chance
    check out the video section they have, there are 3 videos I think but the people are really fast at
    typing the alphabet. - My record was 4.207 I could probaly get faster but I put alot of time doing
    this nd dont want to get too addicted to it. - Post your times heres.....
  26. I Have A Girl Problem Here
    I like this girl and she likes me (27)
    Ok I have a girl problem here. I like this girl and she likes me back but there is a small problem.
    She already has a boyfriend. I want to go ask her out but as you see she has a boyfriend. So my
    question is what should I do. We are good friends and know each other pretty well.....
  27. Problem Installing Sims 2 Nightlife
    update failure (25)
    I have the Sims 2. I tried to install Sims 2 Nightlife expansionpack. He reches 100 % with
    installing the game...then he automatically run the updat for the sims 2. But when he's going
    trough the files he stops st the file: CSBin/package.exe He says there is a error, and then when I
    click ok, install terminates and goes back from 100% to 0%. Can anybody tell me what's going
    wrong here? Has anyone else had this problem? I just can't figure it out. And on the internet I
    found a few people who had the same problem but just havent had an solution for it yet. Ca....
  28. Setting Processor Type
    in the BIOS (4)
    I have a coputer about a year and half old, anyway last night I had to reset the BIOS due to some
    unplesnentness, which I'm not willing to discuss. Anyway that went well however now the
    computer thinks the process is AMD athalon XP 2500+ when it actualy is a 3200+, I know this for a
    fact it is printed on the processor (I checked). Anyway when I was in the BIOS a wile ago I thought
    I saw I clock setting option, anyway now I can't find it. Can anyone tell me where in the BIOS
    these options should be. Some Specs: Board: nVidia-nForce2 Soltek BIOS: Phoenix Techno....
  29. Import From Excel File Into Mysql Database
    (8)
    Has anyone tried using the excel import function that comes with phpmyadmin
    http://www.phpmyadmin.net/home_page/ - it does not require any additional plug-ins or scripts and
    is fairly straightforward to use. In phpmyadmin, if you click on the database table which you wish
    to import the data to , there is a link on the bottom left corner which says "insert data from a
    text file into the table" - although it says text file it still can be used to import an excel file.
    When you click on this link you will be taken to a page where you will be asked for the file name
    (the....
  30. Mysql Database Setup : Setting Up Mysql Database
    Guide to use MySQL database in your site (6)
    A SMALL INTRODUCTION TO DATABASE ============================= I have seen that many members have
    problems with Database. Here is a small INFO which should give you the IDEA. mySQL is a DATABASE
    server. You can access it using the link in Cpanel. Cpanel can be accessed by
    "www.YOUR-SITE.com/Cpanel" There you have 4 Main Options :- 1> CREATE A DATABASE 2> CREATE A USER
    3> ADD USER TO DATABASE 4> PHPMYADMIN CREATE : IT ALLOWS YOU TO CREATE A DATABASE CREATE USER
    : IT ALLOWS YOU TO CREATE A USER. USING THIS, YOU CAN ACCESS THE DATABASE. A DATABASE CANNOT BE....

    1. Looking for mysql, connect, problem, type

Searching Video's for mysql, connect, problem, type
Similar
The Only
Reason I
Choose Ms
Sql Server
Rather Than
Mysql
Cannot
Connect With
Ftp
[resolved] -
Default
account can,
but not
created FTP
account.
Need Advice
On Setting
Up Mysql
Database. -
I have a
huge amount
of daily
data updates
to be
inserted.
Mysql Db Is
Down Getting
Following
Error
Problem With
My
Girlfriend
Family, Need
Suggestions
For Action -
Problem with
my
girlfriend
family, need
suggestions
for action
Seeking Help
With
Javascript -
Need help
with drag
and drop
type script
Terminating
Hosting
Problem
Browser
Compatibilit
y Problem
With Firefox
- Javascript
+ Css -
Having
trouble
making a
script work
right - any
suggestions?
Domain
Problem :
This Is
Important..
A Problem
With Ftp
Clients - I
can't
connect
Installing
Movable Type
4
Youtube
People That
Do Not
Respect
Other
Opinions -
...This
problem on
YouTube
Problem
Getting Text
To Align
With
Different
Resolutions
How Many
More Times
Will I Have
To Post
About This?
- Problem
just keeps
lingering
Itunes
Problem!
-
Help!
3;!
Problem
Aligning In
Firefox -
Problem
aligning an
image in
Firefox.
Skype /
Xampp Port
Conflict -
How to
overcome the
problem
Laptop
Keyboard
Problem -
Dell
Inspiron
6000
Remote
Assistance
Problem -
Won't
work
Dvd Drive
Problem - It
Wont Read
Anything!
;
Php Header
Problem - i
always got
header
problem
Subquery In
Mysql
Problem With
Page
Redirect -
Help me out
with this
problem...
Connect To
Remote
Oracle
Database
With Toad -
i'm lost
How Fast Can
You Type The
Alphabet? -
Warning:
addictive.
I Have A
Girl Problem
Here - I
like this
girl and she
likes me
Problem
Installing
Sims 2
Nightlife -
update
failure
Setting
Processor
Type - in
the BIOS
Import From
Excel File
Into Mysql
Database
Mysql
Database
Setup :
Setting Up
Mysql
Database -
Guide to use
MySQL
database in
your site
advertisement



Mysql_connect Problem - Can't find what I must to type



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE