Before asking for help please read "Requesting Help and Suggestions" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

SQLSTATE[42S01]: Base table already exists during first installation (SOLVED) 2 weeks 1 day ago #1

  • MartinBr
  • MartinBr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
Hi,
finally I took the step and rented some webspace to install webtrees. After some stumbling I got to the point to run the setup wizard. I came to the point where you setup the admin account, but clicking onto "continue" the following message appears:
Einrichtungsassistent von webtrees

Ein unerwarteter Datenbankfehler ist aufgetreten.

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'wt_gedcom' already exists (SQL: create table `wt_gedcom` (`gedcom_id` int not null auto_increment primary key, `gedcom_name` varchar(255) not null, `sort_order` int not null default '0') default character set utf8 collate 'utf8_unicode_ci' engine = InnoDB)

#0 /srv/www/web272/htdocs/webtrees/vendor/illuminate/database/Connection.php(672): Illuminate\Database\Connection->runQueryCallback()
#1 /srv/www/web272/htdocs/webtrees/vendor/illuminate/database/Connection.php(490): Illuminate\Database\Connection->run()
#2 /srv/www/web272/htdocs/webtrees/vendor/illuminate/database/Schema/Blueprint.php(109): Illuminate\Database\Connection->statement()
#3 /srv/www/web272/htdocs/webtrees/vendor/illuminate/database/Schema/Builder.php(364): Illuminate\Database\Schema\Blueprint->build()
#4 /srv/www/web272/htdocs/webtrees/vendor/illuminate/database/Schema/Builder.php(223): Illuminate\Database\Schema\Builder->build()
#5 /srv/www/web272/htdocs/webtrees/app/Schema/Migration0.php(37): Illuminate\Database\Schema\Builder->create()
#6 /srv/www/web272/htdocs/webtrees/app/Services/MigrationService.php(69): Fisharebest\Webtrees\Schema\Migration0->upgrade()
#7 /srv/www/web272/htdocs/webtrees/app/Http/RequestHandlers/SetupWizard.php(396): Fisharebest\Webtrees\Services\MigrationService->updateSchema()
#8 /srv/www/web272/htdocs/webtrees/app/Http/RequestHandlers/SetupWizard.php(357): Fisharebest\Webtrees\Http\RequestHandlers\SetupWizard->createConfigFile()
#9 /srv/www/web272/htdocs/webtrees/app/Http/RequestHandlers/SetupWizard.php(193): Fisharebest\Webtrees\Http\RequestHandlers\SetupWizard->step6Install()
#10 /srv/www/web272/htdocs/webtrees/app/Http/Middleware/ReadConfigIni.php(68): Fisharebest\Webtrees\Http\RequestHandlers\SetupWizard->handle()
#11 /srv/www/web272/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ReadConfigIni->process()
#12 /srv/www/web272/htdocs/webtrees/app/Http/Middleware/SecurityHeaders.php(48): Middleland\Dispatcher->handle()
#13 /srv/www/web272/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\SecurityHeaders->process()
#14 /srv/www/web272/htdocs/webtrees/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle()
#15 /srv/www/web272/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\EmitResponse->process()
#16 /srv/www/web272/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle()
#17 /srv/www/web272/htdocs/webtrees/app/Webtrees.php(275): Middleland\Dispatcher->dispatch()
#18 /srv/www/web272/htdocs/webtrees/app/Webtrees.php(262): Fisharebest\Webtrees\Webtrees::dispatch()
#19 /srv/www/web272/htdocs/webtrees/index.php(51): Fisharebest\Webtrees\Webtrees->httpRequest()
#20 {main}

Could you please tell me how I can get out of this dilemma?
Best regards
Martin

Please Log in or Create an account to join the conversation.

Last edit: by MartinBr. Reason: added (SOLVED) to the title

SQLSTATE[42S01]: Base table or view already exist during first installation 2 weeks 1 day ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 16886
I'm guessing you have run "half" the setup, and have half a database.

Delete all the tables from the database, and try again.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

SQLSTATE[42S01]: Base table or view already exist during first installation 2 weeks 1 day ago #3

  • MartinBr
  • MartinBr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
wenn ich nur wüsste, wie ...

Please Log in or Create an account to join the conversation.

SQLSTATE[42S01]: Base table or view already exist during first installation 2 weeks 1 day ago #4

  • MartinBr
  • MartinBr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
sorry, wrong language - unfortunately I don't know how to reach the database or delete its content.

Please Log in or Create an account to join the conversation.

SQLSTATE[42S01]: Base table or view already exist during first installation 2 weeks 23 hours ago #5

  • hermann
  • hermann's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 764
Welchen Anbieter hast Du gewählt?
Hermann
Designer of the custom module "Extended Family"

webtrees 2.1.16 (all custom modules installed, PHP 8.2, MySQL 5.7) @ ahnen.hartenthaler.eu

Please Log in or Create an account to join the conversation.

SQLSTATE[42S01]: Base table or view already exist during first installation 2 weeks 22 hours ago #6

a quick (and dirty) fix is to choose a different table prefix in setup and to delete the wrong tables later
Frank (Warius)
wbt.warius.info with Webtrees 2.1.15 on Windows Server 2022, IIS10, PHP 8.1 latest, MYSQL 8.0 latest

Please Log in or Create an account to join the conversation.

SQLSTATE[42S01]: Base table or view already exist during first installation 2 weeks 17 hours ago #7

  • JustCarmen
  • JustCarmen's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 1189

sorry, wrong language - unfortunately I don't know how to reach the database or delete its content.

You can write your message in whatever language you like on this forum. There are many Germans here who can help you in your own language and everybody else know how to use Google Translate, Deepl etc.

When you rented web space from your provider you had login information to access the database. If you don't know how to delete the database to start over with the installation then I think it's best to ask your provider for help. Or else follow Warius' suggestion and choose a prefix other than 'wt' at setup.

Carmen
Designer of the JustLight theme (comes with a light and dark color palette), Fancy Imagebar, Fancy Research Links and Fancy Treeview for webtrees 2


Check my website at www.justcarmen.nl

Please Log in or Create an account to join the conversation.

SQLSTATE[42S01]: Base table or view already exist during first installation 2 weeks 6 hours ago #8

  • MartinBr
  • MartinBr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
Hi,
thank you for all your support.
I used the quick fix, Warius recommended. It worked.
And I asked my provider (servmania.de) how to delete the broken tables. They normally answer very quick.

Please Log in or Create an account to join the conversation.

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

SQLSTATE[42S01]: Base table or view already exist during first installation 1 week 6 days ago #9

  • MartinBr
  • MartinBr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
The webhoster offers a phpMyAdmin-access where I could delete the unfinished database-tables. So everything is clean again.

I think the mistake was my impatience. It takes a moment to set up the administrator access. I didn't see that the program was still working and clicked "continue" one more time. I guess the database setup couldn't handle that. If that was really the reason, maybe it would be a good idea add a hint that it takes some time or the script should somehow react to the first click or just ignore the 2nd click.

Please Log in or Create an account to join the conversation.

SQLSTATE[42S01]: Base table or view already exist during first installation 1 week 5 days ago #10

  • MartinBr
  • MartinBr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18

my provider (servmania.de)

Just to be correct: The provider is ServMedia.de and the (excellent) support is provided by servmania.de .

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum