Forums / General Questions / Removed local database from phpmyadmin by mistake

Removed local database from phpmyadmin by mistake

Locked

Views: 9,510

Results 21 to 40 of 67
This thread is locked. New replies are disabled.
8 Dec 2009, 3:40 AM
#21
soulkreed avatar

soulkreed

Zen Follower

Join Date:
Nov 2009
Location:
Melbourne, Australia
Posts:
130
Plugin Contributions:
0

Removed local database from phpmyadmin by mistake

Forgot to mention this, I have been trying to find the configure.php file from a new zen cart to overwrite the corrupted configure.php file in admin/includes.... on my current installation and i am unable to track it down, it's just not there anywhere..mystery to me.

All the configure.php files are there on my current store ( both in my admin/includes and my includes.. ) but not visible anywhere on a new zen cart ( one that i unzipped solely for taking out files )

Cheers.

Soulkreed
http://www.soulkreed.com
All Over Prints

8 Dec 2009, 8:20 AM
#22
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Removed local database from phpmyadmin by mistake

Soulkreed:

Forgot to mention this, I have been trying to find the configure.php file from a new zen cart to overwrite the corrupted configure.php file in admin/includes.... on my current installation and i am unable to track it down, it's just not there anywhere..mystery to me.

All the configure.php files are there on my current store ( both in my admin/includes and my includes.. ) but not visible anywhere on a new zen cart ( one that i unzipped solely for taking out files )

Cheers.

The configure.php files are created during the installation process so you won't find them in the distribution package.

You should have uncorrupted copies on your local machine from the first installation that you did though. Just use those (making sure you update the various settings to match what is needed for your dot easy installation.

If for some reason you DON'T have a local copy, you can also use the files named "dist-configure.php" for recovery purposes (just make a copy and then rename to configure.php). Don't just rename these (as some people have done) because you never know when you may need them again.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

8 Dec 2009, 8:27 AM
#23
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Removed local database from phpmyadmin by mistake

Soulkreed:

Hi,
I am unable to log back in, I don't know how to do it, sorry.
I only have one screen ( phpmyadmin-local ) that I go to when i click on the saved url in my favourites. This screen is no longer looking like it used to. Is it possible to show you a picture of the screen i am looking at which may shed some light on this?

Sure.

Soulkreed:

In regards to deleting and re-installing a new mysql installation, i wouldn't know where to begin, any clues please?
Cheers

Uninstalling should be possible from your windows control panel add/remove programs (or whatever Windoze calls it these days).

To re-install, just repeat the process you used the first time you installed it. :D

Also, if you are lucky, the 'uninstall' process may even give you an option to 'repair' the installation - If so, I'd be trying that out before doing an uninstall/re-install. Sorry I can't be any be explicit or definitive about this, but I don't run windows so I can't verify it for you.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

8 Dec 2009, 10:10 AM
#24
soulkreed avatar

soulkreed

Zen Follower

Join Date:
Nov 2009
Location:
Melbourne, Australia
Posts:
130
Plugin Contributions:
0

Re: Removed local database from phpmyadmin by mistake

Hi Rod,
thanks mate and evryone else for all your help, very much appreciated.
I did the configure.php overwrite of the corrupted one with the original version and there were a few little things i needed to fix which i did. It is now giving me this below

0 DB_ERROR_NOT_CONNECTED
in:
[select * from project_version WHERE project_version_key = 'Zen-Cart Database' ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Any clues...?

I am unable to find anywhere in my windows add/remove anything remotely that looks like a mysql file/folder/program, unless it's named something completely different.

I can't remember how to do the print screen thing to show you a copy of what the phpmyadmin page is now looking like ( i press the print screen button and then what...? ) but here is an attempt with the ctrl c and paste of the actual phpmyadmin screen, hope it sheds some light,

Welcome to phpMyAdmin 2.6.4-pl1

MySQL 4.1.14-nt running on localhost as root@localhost
phpMyAdmin - Logo
MySQL
Create new database Create new database: Documentation
No Privileges
Show processes Show processes Documentation
Character Sets and Collations Character Sets and Collations
Storage Engines Storage Engines
Databases Databases
Export Export

phpMyAdmin
Language
Language Info:
MySQL charset MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation
MySQL connection collation: armscii8_binarmscii8_general_ciascii_binascii_general_cibig5_binbig5_chinese_cibinarycp1250_bincp1250_croatian_cicp1250_czech_cscp1250_general_cicp1251_bincp1251_bulgarian_cicp1251_general_cicp1251_general_cscp1251_ukrainian_cicp1256_bincp1256_general_cicp1257_bincp1257_general_cicp1257_lithuanian_cicp850_bincp850_general_cicp852_bincp852_general_cicp866_bincp866_general_cicp932_bincp932_japanese_cidec8_bindec8_swedish_cieuckr_bineuckr_korean_cigb2312_bingb2312_chinese_cigbk_bingbk_chinese_cigeostd8_bingeostd8_general_cigreek_bingreek_general_cihebrew_binhebrew_general_cihp8_binhp8_english_cikeybcs2_binkeybcs2_general_cikoi8r_binkoi8r_general_cikoi8u_binkoi8u_general_cilatin1_binlatin1_danish_cilatin1_general_cilatin1_general_cslatin1_german1_cilatin1_german2_cilatin1_spanish_cilatin1_swedish_cilatin2_binlatin2_croatian_cilatin2_czech_cslatin2_general_cilatin2_hungarian_cilatin5_binlatin5_turkish_cilatin7_binlatin7_estonian_cslatin7_general_cilatin7_general_csmacce_binmacce_general_cimacroman_binmacroman_general_cisjis_binsjis_japanese_ciswe7_binswe7_swedish_citis620_bintis620_thai_ciucs2_binucs2_czech_ciucs2_danish_ciucs2_estonian_ciucs2_general_ciucs2_icelandic_ciucs2_latvian_ciucs2_lithuanian_ciucs2_persian_ciucs2_polish_ciucs2_roman_ciucs2_romanian_ciucs2_slovak_ciucs2_slovenian_ciucs2_spanish2_ciucs2_spanish_ciucs2_swedish_ciucs2_turkish_ciucs2_unicode_ciujis_binujis_japanese_ciutf8_binutf8_czech_ciutf8_danish_ciutf8_estonian_ciutf8_general_ciutf8_icelandic_ciutf8_latvian_ciutf8_lithuanian_ciutf8_persian_ciutf8_polish_ciutf8_roman_ciutf8_romanian_ciutf8_slovak_ciutf8_slovenian_ciutf8_spanish2_ciutf8_spanish_ciutf8_swedish_ciutf8_turkish_ciutf8_unicode_ci Documentation
Theme / Style
Theme / Style:
phpMyAdmin documentation phpMyAdmin documentation
Official phpMyAdmin Homepage Official phpMyAdmin Homepage
[ChangeLog] [CVS] [Lists]
Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole.

I don't know what alot of this extra stuff is here in the middle but it certainly isn't on the page i just copied, perhaps it just shows up when copying and pasting.

Ciao for now, Ash.

Soulkreed
http://www.soulkreed.com
All Over Prints

8 Dec 2009, 11:08 AM
#25
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Removed local database from phpmyadmin by mistake

Soulkreed:

I did the configure.php overwrite of the corrupted one with the original version and there were a few little things i needed to fix which i did. It is now giving me this below

0 DB_ERROR_NOT_CONNECTED

A part of the configure.php files (there are TWO of them) specifies the logon details (and a couple of other things) for the database. Did you set these correctly? Both files?

Soulkreed:

I am unable to find anywhere in my windows add/remove anything remotely that looks like a mysql file/folder/program, unless it's named something completely different.

Time to stop and take a step or two backwards.

You are telling us things in one message that may require specific actions that you need to take to correct the problem, yet in other messages, (such as this one) you are providing information that shows without a doubt that the information originally supplied was incorrect or incomplete, and as such you are basically digging yourself into a deeper and deeper hole.

Soulkreed:

Welcome to phpMyAdmin 2.6.4-pl1

MySQL 4.1.14-nt running on localhost as root@localhost
<snip>
Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account.

The latest problem we were trying to solve was your inability to login to
phpMyAdmin
, which was supposedly caused by the incorrect changing of the mysql administrator priviliges.(and this was in an attempt to fix yet another issue entirely). The 'last resort' option to fixing the login issue was to be to re-install your mySQL database.

You have now shown us positive proof that you CAN log into phpMyAdmin (and therefore the mySQL database), so the re-install is now a moot point. It also totally contradicts what you told us in the first place.

I really don't know what to tell you from here, as I said, you are providing misleading information (albeit, not intentional), and based on this information I/we are giving you answers that you don't need, which you are acting upon anyway, messing up even further when doing so, and in short getting further and further away from the original problem (inability to import your backup data).

So, you tell me .... where do you want to go from here? I no longer even know where to start :(

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

8 Dec 2009, 10:55 PM
#26
soulkreed avatar

soulkreed

Zen Follower

Join Date:
Nov 2009
Location:
Melbourne, Australia
Posts:
130
Plugin Contributions:
0

Re: Removed local database from phpmyadmin by mistake

Hi Rod,
i am unsure of what to do myself. I simply cannot for reasons most likely of my own lack of knowledge here in regards to certain procedures and the like, navigate my way around the phpmyadmin page/s, a couple of the things you have asked me to do I have no knowledge of them and i am trying to find these things to put the actions into place you have suggested. I am already logged in as you have seen by my previous post ( cool ) i knew i was logged into something i just didn't know if it was the right one or not. ( that's that out of the way then ) In regards to re-installing the mysql file as described by vger below

[ quote = vger ]

When, in your local phpMyAdmin, you could not see the 'Import' tab this was not unusual. If you have an older version of phpMyAdmin then what you'll see is an 'SQL' tab, which you click on. Then you see a Browse link, which you click on. Then you locate the backup of your online db which you downloaded - and select that. Then you click 'Go' and it imports the backup.

It's no more complicated than that.

Vger

[ / quote ]

I no longer have these options on my screen at all, the only thing that is there that say's SQL is a query window and a documentation window, ntohing that opens to a browse option or anything remotely like that, none of the other tabs lead to anything at all like the option explained by vger, it just isn't there.

Cheers

Soulkreed
http://www.soulkreed.com
All Over Prints

9 Dec 2009, 4:41 AM
#27
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Removed local database from phpmyadmin by mistake

Soulkreed:

Hi Rod,
i am unsure of what to do myself.

OK, The FIRST thing you need do is realise that you have more than one problem that needs to be solved.

In MY opinion, your 1st priority would be to fix the DB Connection issue on your dot easy server. This is almost certainly caused as a result of those corrupted configure.php file(s).
I know you have already restored these from local(?) backups, so I'm suspecting that these simply need to be re-edited so the correct user/password & database settings are used.

The NEXT problem you need to fix will be your local database problems.

Soulkreed:

I cannot navigate my way around the phpmyadmin page/s,

I suspect that this is caused by the erroneous changing of the admin/root privileges for your mySQL database. IF this suspicion is correct, you should be able to resolve the issue by following the details I'm about to give:

  1. Using phpMyAdmin log into your mySQL database as the root user.

As long as you can see " MySQL 4.1.14-nt running on localhost as root@localhost" (as per your earlier post) you may proceed.

If you DON'T see this text, then don't continue. It will be pointless.

  1. You should now also see ......

Soulkreed:

the only thing that is there that say's SQL is a query window and a documentation window,

If so, click on (or enter) the SQL query window, which should be displaying a large input screen with a heading like:

"Run SQL query/queries on server localhost"

If so, continue ... if not .... abort.... go no further.

  1. Cut and paste the following piece of code into the SQL input box.
GRANT ALL PRIVILEGES ON * . * TO 'root'@'localhost' ; 
```Press the "Go" button.  

If you get an error message, take note of what it says and get back to me. 

If successful, click on the 'home' icon of phpMyAdmin and logout. (you must use the logout button - don't just close the browser window)

Finally, log back in.   

All being well your phpMyadmin will now be restored. .  

At this point I would suggest you take a break, and get back to me to confirm that all is as I expect it to be (or not, whichever the case may be).

If you do have problems, screenshot will help. 

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

9 Dec 2009, 5:18 AM
#28
soulkreed avatar

soulkreed

Zen Follower

Join Date:
Nov 2009
Location:
Melbourne, Australia
Posts:
130
Plugin Contributions:
0

Re: Removed local database from phpmyadmin by mistake

Hi Rod,
i did have some different username etc on the configure.php overwrite file which have been rectified ( at least i think they have at any rate - i can now get into admin but still not able to turn on or off any side boxes etc or have any of my products show up in categories/products in admin/catalog ) I can't see the results reflected in my store front.
I had a look at the sql query screen as suggested and found a table in sql query that has three tabs up the top

  1. SQL 2) IMPORT FILES 3) SQL HISTORY

there is a box section under that that has as it's heading

Run SQL Query / Queries on database

( this was very similar to the one you mentioned may be there)
I put into the box the info you gave and this is what came up below

Error

SQL query:

GRANT ALL PRIVILEGES ON * . * TO 'root'@'localhost'

MySQL said: Documentation
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
[ Back ]

I don't seem to be able to get the screen shot to work, is there a trick to it?

Cheers.

Soulkreed
http://www.soulkreed.com
All Over Prints

9 Dec 2009, 6:37 AM
#29
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Removed local database from phpmyadmin by mistake

Soulkreed:

Hi Rod,
i did have some different username etc on the configure.php overwrite file which have been rectified

Did you check this in BOTH configure.php files

/includes/configure.php and
/admin/includes/configure.php

Soulkreed:

( at least i think they have at any rate - i can now get into admin but still not able to turn on or off any side boxes etc

This may be a security issue.

Soulkreed:

I can't see the results reflected in my store front.

This may be a result of the /includes/configure.php file not having correct information.

Note: I said MAY in both instances ... There could be any number of other possible causes. In any case, it is **essential that both your configure.php files are 100% correct before looking into any other problem. I will once again repeat, although the both configure files share the same name they have similar but different content. They are NOT interchangable, **

Re: problem with local mysql.

Soulkreed:

Error
SQL query:
GRANT ALL PRIVILEGES ON * . * TO 'root'@'localhost'

MySQL said: Documentation
#1045 - Access denied for user 'root'@'localhost' (using password: NO)

OK, this looks like you really did modify the root (admin) account so that it no longer has permissions to grant permissions, even to itself. There probably ARE ways that this can still be corrected without doing a complete re-install, but I'm really not familiar enough with the Windows versions of mySQL (or its various tools) to be able to guide you.

There are MANY threads to be found on Google with suggestions on how to fix this, for example.

... but in all honesty, knowing that there is probably nothing in your database that needs to be saved, you may simply be best of doing a reinstall. Your current installation is V4.1 anyway, while the currently recommended installation is V5.1.x .

You can download V5.1.x from here.

There are several different windows 'packages' to choose from, I would suggest you use the one called "Windows MSI Installer (x86)"

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

9 Dec 2009, 9:24 AM
#30
soulkreed avatar

soulkreed

Zen Follower

Join Date:
Nov 2009
Location:
Melbourne, Australia
Posts:
130
Plugin Contributions:
0

Re: Removed local database from phpmyadmin by mistake

Hi Rod,
I believe that both admin/includes/configure.php and includes/configure.php have the same info ( hope so, I can't see anything at any rate)

I have downloaded a copy of the mysql V5.1 with windows msi installer, I am unsure of what to do now.

Cheers.

Soulkreed
http://www.soulkreed.com
All Over Prints

9 Dec 2009, 1:16 PM
#31
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Removed local database from phpmyadmin by mistake

Soulkreed:

Hi Rod,
I believe that both admin/includes/configure.php and includes/configure.php have the same info ( hope so, I can't see anything at any rate)

There SHOULD be SOME differences between the files, but the paths and database connection stuff (ie, the bits you need to edit) will be the same in both.

Soulkreed:

I have downloaded a copy of the mysql V5.1 with windows msi installer, I am unsure of what to do now.

Errr, double-click on it, and follow the bouncing ball :smile:

Sorry, I really can't give more info than that, because I don't run windows.

msi (microsoft installer programs) tend to be pretty 'user friendly'.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

9 Dec 2009, 1:21 PM
#32
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Removed local database from phpmyadmin by mistake

Soulkreed:

I have downloaded a copy of the mysql V5.1 with windows msi installer, I am unsure of what to do now.

After it is installed you should be able to connect to it with phpMyadmin.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

9 Dec 2009, 10:09 PM
#33
soulkreed avatar

soulkreed

Zen Follower

Join Date:
Nov 2009
Location:
Melbourne, Australia
Posts:
130
Plugin Contributions:
0

Re: Removed local database from phpmyadmin by mistake

It say's it can't install the mysql ( error )
Perhaps it has something to do with the old one still on there that I am unable to find in my add/remove section. The new one visible but not the old one.

I am still getting no products visible in my admin/catalog/categories/products there still there in my store front but not showing in the actual products and attributes sections, also no changes i make in the admin section are being transfered to the site.
Perhaps still something wrong with the admin/includes/configure.php and includes/configure.php not being the same, I am just not sure.
It said that port 3306 ( or something like that ) was being used and did i want to use it anyway, i tried once with yes and once with another port and both ways failed to install it.
Any clues..?

Soulkreed
http://www.soulkreed.com
All Over Prints

10 Dec 2009, 2:02 AM
#34
soulkreed avatar

soulkreed

Zen Follower

Join Date:
Nov 2009
Location:
Melbourne, Australia
Posts:
130
Plugin Contributions:
0

Re: Removed local database from phpmyadmin by mistake

I managed to download/upload a newer version of mysql and delete the old one which wasn't letting me upload the newer one. ( lol )

I have been reading and reading and implementing the help on the forums in regards to getting out of the issue of ( see below )

#1045 - Access denied for user 'pma'@'localhost' (using password: YES)

and it remains a mystery still. I cannot even access the phpmyadmin screen any longer it just comes up with the above every time.

I even downloaded a copy of wamp as i read in one of the forums how much easier it is to use, alas, i have no idea as to how/what implement wamp either ( same thing happens there also )

Is there an easier/faster way to go about all this ie : erase absolutely everything ( mysql,phpmyadmin,xamp ) except the store files of course and begin again from the very start.
I would need directions to do that though as well.

I have even thought about ditching the entire project in this format ( trying to fix all this up ) and rebuilding the site from scratch ie : first my local then transfer over to dot easy, yet i have come so far, be a shame to quit now.

Any thoughts?

Soulkreed
http://www.soulkreed.com
All Over Prints

10 Dec 2009, 3:34 AM
#35
soulkreed avatar

soulkreed

Zen Follower

Join Date:
Nov 2009
Location:
Melbourne, Australia
Posts:
130
Plugin Contributions:
0

Re: Removed local database from phpmyadmin by mistake

I am getting this when i try to login into my local admin section

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\Program Files\xampp\htdocs\store\admin\includes\configure.php on line 63

and I get this when i log into my local store front

This Is my store logo. [home link]
The site is currently down for maintenance. Please come back later.
Sorry!
There seems to be a problem connecting to our database. Please give us a few minutes to remedy the problem. Thank you.

To verify the site status ... Click here

Any clues..?

Soulkreed
http://www.soulkreed.com
All Over Prints

10 Dec 2009, 4:48 AM
#36
soulkreed avatar

soulkreed

Zen Follower

Join Date:
Nov 2009
Location:
Melbourne, Australia
Posts:
130
Plugin Contributions:
0

Re: Removed local database from phpmyadmin by mistake

My text editor has just run out of the free 30 day trial, i have downloaded another text editor but i cannot open any files to change in filezilla now as it keeps going into the old text editor when i click on view/edit. Is there a way i can make the new text editor the default one to open up my files into? The drag and drop feature does not work in this manner either.

Soulkreed
http://www.soulkreed.com
All Over Prints

10 Dec 2009, 6:41 AM
#37
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Removed local database from phpmyadmin by mistake

Soulkreed:

I am still getting no products visible in my admin/catalog/categories/products there still there in my store front but not showing in the actual products and attributes sections, also no changes i make in the admin section are being transfered to the site.

Please PM me with the login details for your cPanel and your zencart admin on your dot easy account. It is going to take me far less time to fix these problems for you than it is to try to continue solving the issue(s) via the forum.

Cheers
Rod

ps. Login details required are usernames/passwords and URL's (Web addresses), so that'll be two usernames, two passwords, and two addreses.

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

10 Dec 2009, 6:47 AM
#38
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Removed local database from phpmyadmin by mistake

Soulkreed:

I am getting this when i try to login into my local admin section

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\Program Files\xampp\htdocs\store\admin\includes\configure.php on line 63

There is either a missing quote (' or ") in the file specified, or an additional quote where there shouldn't be one.

If it isn't on line 63 (as indicated) it'll probably be on the line just before it.

Soulkreed:

and I get this when i log into my local store front

This Is my store logo. [home link]
The site is currently down for maintenance. Please come back later.
Sorry!
There seems to be a problem connecting to our database. Please give us a few minutes to remedy the problem. Thank you.

To verify the site status ... Click here

Any clues..?

This is possibly/probably related to the first error. Fix that one first and see if it solves this second problem.

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

10 Dec 2009, 7:57 AM
#39
soulkreed avatar

soulkreed

Zen Follower

Join Date:
Nov 2009
Location:
Melbourne, Australia
Posts:
130
Plugin Contributions:
0

Re: Removed local database from phpmyadmin by mistake

Hi Rod,
have pm'd you.

Cheers for this.

Owe you big time.

Soulkreed
http://www.soulkreed.com
All Over Prints

10 Dec 2009, 8:05 AM
#40
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Removed local database from phpmyadmin by mistake

Soulkreed:

#1045 - Access denied for user 'pma'@'localhost' (using password: YES)

and it remains a mystery still. I cannot even access the phpmyadmin screen any longer it just comes up with the above every time.

'pma' is the username that phpMyAdmin uses to connect to the mySQL database. Since you now have a new database the pma user (and the associated tables) won't exist yet. You need to rerun the myphpadmin installation scripts. Sorry, I can't tell you what they are called, or where to find them on your system. I don't use Windows.

Soulkreed:

I even downloaded a copy of wamp as i read in one of the forums how much easier it is to use, alas, i have no idea as to how/what implement wamp either ( same thing happens there also )

It isn't true that wamp is easier to use, but it can make initial installations a lot easier.

'wamp' stands to "Windows", " Apache", "mySQL" and "PHP". It is basically an installer system that installs the 3 applications in one unified way, rather than each application individually.

Soulkreed:

Is there an easier/faster way to go about all this ie : erase absolutely everything ( mysql,phpmyadmin,xamp ) except the store files of course and begin again from the very start.

Yes, erasing/deleting and starting again may be your best/easiest option.

Soulkreed:

I would need directions to do that though as well.

Looks to me like it is a simple 3 step process:
http://www.wampserver.com/en/

Soulkreed:

I have even thought about ditching the entire project in this format ( trying to fix all this up ) and rebuilding the site from scratch ie : first my local then transfer over to dot easy, yet i have come so far, be a shame to quit now.

Any thoughts?

The main problem, as I see it, is that you you don't quite understand the technology required to make zencart work. You need to isolate and identify the components rather than treating it all as some kind of mysterious "black box" thing.

The baseline technology is the Apache Webserver. This is a 'standalone' application that serves web pages to a client. The client being a web browser. Microsoft IIS is another type of webserver.

PHP is an addon module for Apache, that gives it 'dynamic' capabilites, for example, getting data from a database rather than simple html files. ASP is to IIS what PHP is to Apache.
**
mySQL **is a standalone database application. It has no direct connection to either Apache, or **PHP **- it is simply a database, much like MSAccess, nothin more, nothing less.

phpmyadmin is a web-based application the provides a convenient method to access and manipulate a** mySQ**L database, using the PHP programming language.

zencart is **also **a web-based application that uses the **PHP **langauge to access a mySQL database that stores the zencart products (among other things).

phpmyadmin has no connection or relationship with** zencart** whatsever, They are similar only in as much as the both use PHP to access a MySQL database.

Any and all accesses to a mySQL database requires that the database itself has user/password information stored in it to allow such access. Initially, the database will only have one user, named 'root'.

For zencart to access the database, a new user needs to be added to the database, this is the 'zen-cart' user - zencart itself doesn't know what this username is, nor what tables it has access too (they haven't been created yet), so when they ARE created by the zencart install scripts (which initially connects to the database as 'root'), zencart needs to 'remember' this information for future accesses, and it does this via the configure.php files.
.
A similar situation exists for **phpmyadmin. **this application ALSO needs a 'user account' stored in the mySQL database in otder to access it. As with zencart, **phpmyadmin **also 'remebers' its own log in details with its own configuration files.

This means that by the time you have finished installing MySQL, **phpmyadmin, **and zencart, the mySQL database (a standalone application) now has 3 different 'users', the 'root' user, the zencart user, and the phpmyadmin user. Each of them with their own unique username, password and privileges.

That is the database or 'back end' of the system.

The 'front end' of the system consists of the Apache webserver, and the .php files that outputs data to the screen. Apache is just as 'dumb' as any other application, it doesn't magically know where to find any of your files, let alone the backend database, It obtains this information from the configuration files. If you enter an incorrect path into these files then Apache simply isn't going to display the file(s). If you put invalid database connection information into the confuration files, then it simply won't be able to connect to the database to retrieve your product information, and finally, if you don't structure the configuration files correctly (in other words, if you introduce syntax errors during editing), then the **PHP **module will simply 'give up' and nothing will work as expected.

As you can see, there is a LOT that can go wrong, and when you start compounding problems, it can be very difficult to resolve, only one problem can be tackled at a time, and you my friend, appear to be tackling half a dozen problems at once and getting further and further away from your goal.

As per my earlier message, if you PM me your dot easy details I should be able to 'restore' those problems for you (before you make 'em any worse) - but for problems on your local machine, you are pretty much on your own. I can't really offer much in the way of help even if I wanted too.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.