Forum

Restore database er...
 
Notifications
Clear all

Restore database error

7 Posts
2 Users
0 Reactions
6,441 Views
(@bassem)
Posts: 27
Active Member
Topic starter
 
[#5595]

Hello,

I tried for a while to restore my ProjeQtor database but without success.
And every time I receive this error message:

Erreur
Requête SQL :

--
-- Dumping data for table `accessprofile`
--

INSERT INTO `accessprofile` (`id`, `name`, `description`, `idAccessScopeRead`, `idAccessScopeCreate`, `idAccessScopeUpdate`, `idAccessScopeDelete`, `sortOrder`, `idle`) VALUES
(1, 'accessProfileRestrictedReader', 'Read only his projects', 3, 1, 1, 1, 100, 0),
(2, 'accessProfileGlobalReader', 'Read all projects', 4, 1, 1, 1, 150, 0),
(3, 'accessProfileRestrictedUpdater', 'Read and Update only his projects', 3, 1, 3, 1, 200, 0),
(4, 'accessProfileGlobalUpdater', 'Read and Update all projects', 4, 1, 4, 1, 250, 0),
(5, 'accessProfileRestrictedCreator', 'Read only his projectsnCan createnUpdate and delete his own elements', 3, 3, 2, 2, 300, 0),
(6, 'accessProfileGlobalCreator', 'Read all projectsnCan createnUpdate and delete his own elements', 4, 4, 2, 2, 350, 0),
(7, 'accessProfileRestrictedManager', 'Read only his projectsnCan createnUpdate and delete his projects', 3, 3, 3, 3, 400, 0),
(8, 'accessProfileGlobalManager', 'Read all pro[...]
MySQL a répondu :

#1062 - Duplicata du champ '1' pour la clef 'PRIMARY'

P.S: I am using ProjeQt0r 7.2.5

Thank you for your help.


 
Posted : 04 Dec 2018 11H50
(@babynus)
Posts: 14952
Member Admin
 

You must clean (empy) DB before restoring.
NB : better rename DB, so you keep existing version as backup


 
Posted : 04 Dec 2018 11H51
(@bassem)
Posts: 27
Active Member
Topic starter
 

I did it, but I still received this error message:
Erreur
Requête SQL :

--
-- Dumping data for table `accessprofile`
--

INSERT INTO `accessprofile` (`id`, `name`, `description`, `idAccessScopeRead`, `idAccessScopeCreate`, `idAccessScopeUpdate`, `idAccessScopeDelete`, `sortOrder`, `idle`) VALUES
(1, 'accessProfileRestrictedReader', 'Read only his projects', 3, 1, 1, 1, 100, 0),
(2, 'accessProfileGlobalReader', 'Read all projects', 4, 1, 1, 1, 150, 0),
(3, 'accessProfileRestrictedUpdater', 'Read and Update only his projects', 3, 1, 3, 1, 200, 0),
(4, 'accessProfileGlobalUpdater', 'Read and Update all projects', 4, 1, 4, 1, 250, 0),
(5, 'accessProfileRestrictedCreator', 'Read only his projectsnCan createnUpdate and delete his own elements', 3, 3, 2, 2, 300, 0),
(6, 'accessProfileGlobalCreator', 'Read all projectsnCan createnUpdate and delete his own elements', 4, 4, 2, 2, 350, 0),
(7, 'accessProfileRestrictedManager', 'Read only his projectsnCan createnUpdate and delete his projects', 3, 3, 3, 3, 400, 0),
(8, 'accessProfileGlobalManager', 'Read all pro[...]
MySQL a répondu :

#1062 - Duplicata du champ '1' pour la clef 'PRIMARY'


 
Posted : 04 Dec 2018 11H58
(@babynus)
Posts: 14952
Member Admin
 

#1062 - Duplicata du champ '1' pour la clef 'PRIMARY'

sure your db is not empty.


 
Posted : 04 Dec 2018 12H07
(@bassem)
Posts: 27
Active Member
Topic starter
 

please find the attached file


 
Posted : 04 Dec 2018 12H14
(@bassem)
Posts: 27
Active Member
Topic starter
 

P.S : I use mysqlbackupandftp tool to backup my database
Maybe the settings are incorrect (please find attached file)


 
Posted : 04 Dec 2018 12H22
(@babynus)
Posts: 14952
Member Admin
 

check your dump.
Possible it starts with "use dbName" that positions on another db.


 
Posted : 04 Dec 2018 15H35
Share:

Scroll to Top