If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Flush Privileges???

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-26-05, 13:11
redzonne redzonne is offline
Registered User
 
Join Date: Feb 2005
Location: Los Angeles, CA
Posts: 17
Flush Privileges???

Newbie Question: How do go about running the query FLUSH PRIVILEGES?

Getting the following error: 1044: Access denied for user: 'realest1_user@localhost' to database 'customersx'

http://www.realestatenetfind.com/ownersignupx.phps

http://www.realestatenetfind.com/own...p_insertx.phps

My Hosting company's hosting specs are:

Apache 1.3.33
PHP 4.3.10
MySQL 4.0.22

Any suggestions?
Reply With Quote
  #2 (permalink)  
Old 02-26-05, 15:16
redzonne redzonne is offline
Registered User
 
Join Date: Feb 2005
Location: Los Angeles, CA
Posts: 17
Unhappy

I contacted my hosting company and they pointed out that I was incorrectly trying to connect to a table thru mysql_select_db

customersx is a table within database realest1_proppost

so,

mysql_select_db("cutomersx", $db_conn);

should of been

mysql_select_db("realest1_proppost", $db_conn);

I got rid of the Error 1044...Now I get just "0:" and no info is inserted into my table. hmmmm....

Any suggestions?
Reply With Quote
  #3 (permalink)  
Old 02-26-05, 17:01
jasong jasong is offline
Registered User
 
Join Date: Jul 2004
Posts: 23
PHP Code:
<?php
$dbServer
="localhost";
$dbuserName="username";
$dbpassword="password";
$dbName="table_name";
$con=mysql_connect ($dbServer$dbuserName$dbpassword) or die ('Cannot connect to the database.');
$db=mysql_select_db ($dbName);
?>
You connect like that
__________________
SnapSlides.Com - Create slideshows online to share with friends and family.
Reply With Quote
  #4 (permalink)  
Old 02-27-05, 09:34
redzonne redzonne is offline
Registered User
 
Join Date: Feb 2005
Location: Los Angeles, CA
Posts: 17
I fixed it. The form now works and inserts data into the database.

http://www.realestatenetfind.com/cod...nersignup.phps

http://www.realestatenetfind.com/cod...up_insert.phps

Thanks all for your help!
Reply With Quote
  #5 (permalink)  
Old 03-06-05, 14:44
redzonne redzonne is offline
Registered User
 
Join Date: Feb 2005
Location: Los Angeles, CA
Posts: 17
Issue Resolved!

Ok Guy's, I figured it out. The problem was in my table setting in the Mysql database. The passwords column was set VARCHAR (30) and md5 encryptions assigns encryption string 30 +.

The password encryption was saving a depricated version that ofcourse would never match the full version presented by the login script, so I just increased the VARCHAR to 50 and now the login page validation works.

Thanks lots guys....
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On