Table 'mdl_config' already exists

Table 'mdl_config' already exists

by Cristi Hojda -
Number of replies: 9

Installing moodle 3.1.1+.

Get this error: 

error

I get this with 3.1.1, 3.05 and 2.8.12.

I have a hosted domain, no acces to system, only CPanel.

Before any instalation I delete databases and users and recreate.

I supose that is something wrong with my server configuration but what ?

Is someone who have this error or can guide me ?


Average of ratings: -
In reply to Cristi Hojda

Re: Table 'mdl_config' already exists

by Albert Ramsbottom -

How have you deleted the DB??

You will need to use myphpadmin to drop the entire DB


Albert

In reply to Albert Ramsbottom

Re: Table 'mdl_config' already exists

by Cristi Hojda -

With MySQL® Databases from CPanel.

In myphpadmin drop datbase command is deactivated.

In reply to Cristi Hojda

Re: Table 'mdl_config' already exists

by Plamen Vassilev -

You can:

1. drop the database and recreate it

2. drop ALL tables from the database.

You don't have to delete and recreate users.

In reply to Plamen Vassilev

Re: Table 'mdl_config' already exists

by Cristi Hojda -

You supose that error is in the informațion schema.

I will check this în the morning and post the results.

In reply to Plamen Vassilev

Re: Table 'mdl_config' already exists

by Cristi Hojda -

Information schema is ok.

All tables are deleted after recreate database.

In reply to Cristi Hojda

Re: Table 'mdl_config' already exists

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Try creating a database with a different name and then using that for the install.  That will show you if the problem is in the database or the installer.  If you still get the error with a new database, then I would suggest redownloading the moodle code to ensure that you don't have a bad installer.

Average of ratings: Useful (1)
In reply to Emma Richardson

Re: Table 'mdl_config' already exists

by Cristi Hojda -

I try with 5 database names and 5 prefixes.

Only error was the same.

In reply to Cristi Hojda

Re: Table 'mdl_config' already exists

by Usman Asar -
Picture of Plugin developers Picture of Testers

Cristi,

You MAY be given access to either Softaculous or Fantastico as  part of your hosting, try installing Moodle from automated installer and see if that works.