INSTALLATION PROBLEM-DATABASE STEP

INSTALLATION PROBLEM-DATABASE STEP

baris gurler -
Erantzun kopurua: 6

i tried wampserver2 and xampp1.66

with moodle 1.8.5, 1.9 and 1.9+ but nothing is changed

no matter how i fill the blanks in, it keeps giving this error

http://img135.imageshack.us/img135/448/zzzhata2fo7.jpg

someone please help me

Puntuazioen batez bestekoa: -
baris gurler(e)ri erantzunda

Re: INSTALLATION PROBLEM-DATABASE STEP

Matt Molloy -

Hi Baris,

Can you confirm the following:

  • Is MySQL running on your machine (localhost)?
  • Have you created a new database on it called 'moodle'?
  • Are you entering the correct username and password into the moodle installation window you have shown?

Matt

Matt Molloy(e)ri erantzunda

Ynt: Re: INSTALLATION PROBLEM-DATABASE STEP

baris gurler -

hi matt

yes, mysql is running as i installed wampserver

no, i didnt create a database but installer says that "if u dont create one, installer will try to create it"

but it doesnt do what it claims

by the way, i dont know how to create a database..

baris gurler(e)ri erantzunda

Re: Ynt: Re: INSTALLATION PROBLEM-DATABASE STEP

Matt Molloy -

Hi Baris,

It may help if you post some more precise details of your setup:

  • Are you installing for test purposes on a local machine?
  • What is your os?
  • What installation package are you using?

I will make some assumptions, and offer some advice based on them. When you call your site in a browser, because there is no config.php file, the installation script kicks in and tries to create one. To do this, it needs certain information, including where your database lives (is it on the same machie you are testing on?), and what username and password should it use to connect to the database.

If you are using an all in package, chances are that the database is running on localhost, and (FOR LOCAL TESTING PURPOSES ONLY), you should be able to use 'root' as the username, and no password to connect to it.

You mentioned you tried this with xampp. If this is so, you should be able to type in http://localhost/xampp into your browser and reach the xampp window. On the left somwhere down the page, there should be a link to phpmyadmin, which you can click. There you will get to a window that allows you to create a new database. Call it moodle.

Assuming you have dropped your moodle folder into the htdocs folder, then your entry for $CFG-> should read:

$CFG->wwwroot = 'http://localhost/moodle';

This is only good for local testing, as if you are on a network and you try to view your site from another machine, there will be problems. These are easily solved, but let's get things working locally first.

If the newly installed xampp folder ended up on your c drive, then the entry for your $CFG->dirroot should read:

$CFG->dirroot = 'c:\xampp\htdocs\moodle';

If you placed the newly created moodledata folder directly on to your c drive, then the $CFG->dataroot entry should read:

$CFG->dataroot = 'C:\moodledata';

Don't forget to share the moodledata folder, so that apache can read and write to it.

If all my assumptions (guesses) are correct, then the attached config.php file should work for you. Drop it into your moodle folder, and call your site in a browser. Two screenshots of xampp and phpmyadmin here, but your setup may be different.

baris gurler(e)ri erantzunda

Re: Ynt: Re: INSTALLATION PROBLEM-DATABASE STEP

Richard Enison -
BG,

Just to add to what MM said:

I have looked at the source code of the script that says it will try to create a db. There I found comments that say that the script contains code to try to do that, but it doesn't work. That's why the instructions tell you to create an empty db before running the installation script.

Anyway, you say it doesn't do what it claims. Read your own post carefully: "if u dont create one, installer will try to create it". So it only claimed it would try to create it. It never promised that it would succeed.

Hopefully MM's post will help you to create your db. It is one of several ways to do that.

RLE
Richard Enison(e)ri erantzunda

Ynt: Re: Ynt: Re: INSTALLATION PROBLEM-DATABASE STEP

baris gurler -

thank you richard and matt

ive already solved the problem but if it happens again, i will try what u said

thanks again

baris gurler(e)ri erantzunda

Re: Ynt: Re: Ynt: Re: INSTALLATION PROBLEM-DATABASE STEP

Don G -

How did you solve it? I am having the same problem.

Vista, Wampserver 2.0, Moogle lastest version.

Database already created and access is ok but screen hangs after next button to populate the database then finishes with a blank screen after a a couple minutes.

Searched internet for solution and your "I already solved the problem" is the closest I have found.

Other scripts and databse interaction work fine with my Wamp install.

Please let me know your solution...TIA