RSS Forums RSS
Please support our MySQL advertiser: Programming Forums
Views: 1600 | Replies: 2
Reply
Join Date: Mar 2006
Location: Montreal Quebec Canada
Posts: 52
Reputation: puddin is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
puddin puddin is offline Offline
Junior Poster in Training

Desperate! mysql and phpmyadmin

  #1  
Mar 15th, 2006
Hi,

I am with a web host using mysql 4.0 and phpmyadmin 2.5.5 p\1

I am trying to get my html user form on my website to insert into mysql database. I keep getting:

Error! Could not select the database: Access denied for user: 'match.match.com@10.80.0.%' to database 'mydb'

Can you tell me is this error because the web host has not set permission for me Or what else it may be. Last...

I am new to mysql and phpmyadmin but i feel i am understanding it good enough to perform small functions.

And one of the fellas at the hosting company suggested maybe i best go with a dedicated server.

Can you tell me, to have a small online site with user login be able to use mysql and php myadmin smoothly is a dedicated server the way i should go! Thank-You
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2005
Location: Kansas City, Missouri, USA
Posts: 345
Reputation: Troy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: Desperate! mysql and phpmyadmin

  #2  
Mar 15th, 2006
The error you describe sounds like it results from the mysql_select_db() function. If that's the case, am I to assume your mysql_connect() statement did not fail?

You specify the hostname, username, and password with the mysql_connect function. If that did not produce an error, then your account does exist and you can login. If you then get an error when you attemt to select a specific database, then yes, the problem is most likely that your mysql account does not have any privs on that database.

Make sure that your mysql_connect statement is actually successful. For example, if you use the '@' in front of the statement, you won't know it failed. Do something like this:
[PHP]
if (!$cnn = mysql_connect('localhost', 'mysql_user', 'mysql_password')) {
die("Great google-moogly! The database connection failed!");
}
[/PHP]

NO! You do not need a dedicated server, and I would not recommend one to you--unless I was selling dedicated servers. <g> If you really know what you are doing, and you can afford it, a dedicated server is nice to have, but you certainly don't need one. I'd also like to take this moment to shamelessly advertise my hosting services. I provide business-class, LAMP hosting for only $5/mo with everything you need to build PHP/MySql web applications.
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote  
Join Date: Mar 2006
Location: Montreal Quebec Canada
Posts: 52
Reputation: puddin is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
puddin puddin is offline Offline
Junior Poster in Training

Re: Desperate! mysql and phpmyadmin

  #3  
Mar 16th, 2006
Thank-you for replying me, it is working! I cannot switch at this time, I feel awful! I will certainlly consider you if I get a second site (Which is very likely) and I will recommend you! I Promise.
Now I must fine tune (learn) how to script my php ...

Thank-you again so much
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:46 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC