Banzai
User
Expert Boarder
Posts: 29 | | Karma: 0
|
Re:"Access Denied" error message - 2007/03/02 20:21
I think I just solved my DB problem�
When looking at the compare.php, in the section �Columns to Alter�, I had a bunch of lines with SQL instructions to run. All those instructions had among them a line with the �Change Key� command. First I tried running them, by using the [Execute SQL] button that appears next to each instruction, but that didn�t work, because once I ran one instruction it didn�t disappear from the compare.php page� So, I thought running the instructions using the phpmyadmin. Using the phpmyadmin, I copy/paste the instruction and tried to run it, but I kept getting the SQL syntax I mentioned earlier. At this point I thought I couldn�t do anything more without help due to my extremely limited technical knowledge. That�s when my noobish mind came up with a noobish idea� I opened two phpmyadmin windows, each with a database I was comparing. Then I opened a table that compare.php was saying there were differences between the two databases. When looking at them and at their structure, I noticed that the old DB had a message below the fields saying something like �Primary and Index should/must not be assigned to same field�, and the new database had nothing like this. So, I decided to risk it and change the old DB manually and delete the Index line, leaving only the Primary line, so it would stay the same as the new DB.
Fact is, that after this change, the SQL instruction disappeared from the compare.php page and apparently the error was gone� So, I did this for all the instructions on the Alter Columns section and now I have no errors at all as you can see by checking this url: http://www.new.dancefactor.net/db_util/compare.php.
I don�t really know what that means, but I realized that the DB Compare Utility was appointing differences between the databases, but the SQL instruction it was showing to run was, in fact, not correct. Maybe it needs some minor adjustments (if anyone is interested in making them) to work even better, I don�t know. But anyway I wanted to share this information with you.
|