構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Bruno Galvao
Accidentally deleted user in database....
2011/10/07 8:53
答え

Bruno Galvao

ランク: Junior Member

投稿: 58

参加年月日: 2011/08/26

最近の投稿

I deleted a user from the Users table in the database.
Now when I try to recreate the user in the Control Panel, I get the following error when i try the same screename:
"The screen name you requested is associated with an existing friendly URL. "

How do I remove the user's friendly URL?

Thanks,
Bruno
Arvind Mishra
RE: Accidentally deleted user in database....
2011/10/07 12:00
答え

Arvind Mishra

ランク: Regular Member

投稿: 220

参加年月日: 2008/02/13

最近の投稿

You can remove it from Layout table.
Bruno Galvao
RE: Accidentally deleted user in database....
2011/10/07 12:07
答え

Bruno Galvao

ランク: Junior Member

投稿: 58

参加年月日: 2011/08/26

最近の投稿

Arvind Mishra:
You can remove it from Layout table.



Hey Thanks for the information. How would I know which row belongs to the deleted user if there is no column with userId?
There are multiple rows with the friendly URL \home I just do know which one is the correct one to delete.

Thanks!
Bruno Galvao
RE: Accidentally deleted user in database....
2011/10/07 12:49
答え

Bruno Galvao

ランク: Junior Member

投稿: 58

参加年月日: 2011/08/26

最近の投稿

Bruno Galvao:
Arvind Mishra:
You can remove it from Layout table.



Hey Thanks for the information. How would I know which row belongs to the deleted user if there is no column with userId?
There are multiple rows with the friendly URL \home I just do know which one is the correct one to delete.

Thanks!



I deleted the user from the Groups_ table and I was able to recreate.
I did not have to delete anything from the Layout table.
Subhash Shah
RE: Accidentally deleted user in database....
2013/01/10 20:16
答え

Subhash Shah

ランク: Junior Member

投稿: 77

参加年月日: 2011/11/29

最近の投稿

I know its an older thread, but just to update, I was facing the same problem but the solution worked for me too.
Mika Koivisto
RE: Accidentally deleted user in database....
2013/01/10 22:38
答え

Mika Koivisto

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1499

参加年月日: 2006/08/07

最近の投稿

Don't delete anything directly from the database use the API or UI otherwise you'll end up corrupting the the database.
Hitoshi Ozawa
RE: Accidentally deleted user in database....
2013/01/19 9:50
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7990

参加年月日: 2010/03/23

最近の投稿

Mika, these guys already corrupted their databases. User table is also related to the contact table and several other tables.

Also, if you're going to do any direct database operation (even though you're not really suppose to them on liferay tables),
create a backup so you'll be able to go back to what you had.

That said, it probably was better to recreate an user in the user table checking other tables for keys.