leoharsh Posted December 15, 2011 Share Posted December 15, 2011 hi...I installed presta shop on one of my subdomains n made changes to it. For production use, we installed presta shop on another domain. I took d backup of the subdomain version and tried to restore the database in new domain version but getting the error "/* Scheme for table ps_access */ CREATETABLE`ps_access` ( `id_profile` int( 10)unsigned NOTNULL , `id_tab` int( 10)unsigned NOTNULL , `view` int( 11)NOTNULL , `add` int( 11)NOTNULL , `edit` int( 11)NOTNULL , `delete` int( 11)NOTNULL , PRIMARYKEY (`id_profile` ,`id_tab`) ) ENGINE= InnoDBDEFAULT CHARSET= utf8; MySQL said: #1046 - No database selected" could anyone help me? any other alernate to it?? Link to comment Share on other sites More sharing options...
phrasespot Posted December 17, 2011 Share Posted December 17, 2011 #1046 - No database selectedThat is the problem. Before the import, issue a USE db command to MySQL, replacing db with the relevant db name the import is being done into. For future reference, you can make sure that statement is added to backup by selecting the relevant backup options in backup screen of phpMyAdmin or similar. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now