Soulkreed:
I am just clicking on the saved address/link i have of my local phpmyadmin, not sure if it's my sql or the standard zen cart one
It's the same phpMyAdmin either way..... Oh, you mean your not sure if it is logging you in as the zencart user or the mysql user, don't you?
Soulkreed:
( i have found a tab at the bottom left of the phpmy admin that says ' priviledges )
This would suggest you are logged in as the mysql 'admin' user.
To confirm this, if you click on the 'home' link at the top of the phpmyadmin screen you should see something like the following near the top of the main panel
- Server version: 5.0.77-log
- Protocol version: 10
- Server: Localhost via UNIX socket
- User: xxxxxxxxx@localhost
If the 'user' is the same as your zencart username then you will have restricted access.
However.......
Soulkreed:
I am getting this warning/message at the bottom of the phpmyadmin front page
Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account.
.... this is clear indication that you are logged in as the main mysql user ,,, at least on this occasion ... with this login the 'import' function should almost certainly be available to you.
Soulkreed:
Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole.
I wholeheartedly agree with this advisory. However, as long as your localhost has a firewall of some sort in place and isn't *directly* connected to the internet the chances of this security hole being exploited are pretty low. Nonetherless, when you gain more experience I do suggest you set a password for this logon as an additional layer of security.
Soulkreed:
I looked at trying to put a password on it and fix it up but i can't find anywhere that tells me how to do it.
This one isn't obvious... it is *usually* set when MySQL is first installed. To set it after the fact you need to select 'priviliges', then identify the name of the master/root user account (you'll probably only have a couple of users listed anyway). The master/root user will (or should) show as having "all priviliges" - next, click on the 'edit' icon on the right hand column, rhen midway down the page there is a 'change password' option.
All of the above is a 'by the way' or a 'while you are at it' suggestion while you are trying to fix your main issue, which is the missing import function.
As previously stated, the 'import' option should be available to you by default while logged in as 'root'.. if not, then the 'all priviliges' probably won't be seen either.. to fix this, you'll still need to identify the root user account, again, select the 'edit' icon on the right hand side of the screen, and then click on the 'check all' link in the 'global privileges' section.
With this done you should then be able to 'import' data into any and all tables in the database.
This however is considered to be bad practice (using the root/admin account needlessly).
What you *really* want is to give the 'zencart' user permission to import data into the zencart tables.
To do this, from the original 'priviliges' link, identify the zencart user, as before, click on the 'edit' icon at the RHS of the screen, and in the 'global priviliges' section located the 'data' block, and tick the 'file' checkbox (and no others). Save the changes, log out of phpmyadmin and re-log in using the zencart user account. The 'import' function should now appear.
Note: for any SQL pedants reading this, I know that even this isn't the most secure method to use, and that it is better to restrict by database and even table level, but do you want to explain it?)
Anyway, by following these instructions you should be able to be in a position to import the backup of your database tables.
I will also suggest that as long as you are logged in with 'root' access you *should* be able to import the data anyway, which means you don't NEED to do any of the above unless you are concerned about the potential security risks, which as I also stated, are pretty minimal in your situation anyway..
The main points to note are that there will (should) be at least two userr accounts, the main/root account, and another account for the zencart user. The root account should give FULL access to everything, the zencart account will have restricted access (no import ability being one such limitation).
<phew> That should keep you busy for a bit :-)
Cheers
Rod