database on local install - how do I get to it?

database on local install - how do I get to it?

Mary Cooch發表於
Number of replies: 23
Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Testers的相片 Translators的相片
On my hosted Moodle I can get to the database with phpmyadmin and I am just a tiny bit beginning to get my head around this. How do I get to the database in a local install? I can see all the folders and the tables and a folder that says sql and one that says phpmyadmin -but after that I am lost? I want to replicate what I did on the online one but can't see where to/how to
評比平均分數: -
In reply to Mary Cooch

Re: database on local install - how do I get to it?

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
The Moodle for Mac package, based on XAMPP, come with PHPMyAdmin, so I just go to http://localhost/phpmyadmin/ or http://localhost/xampp/ on my local install. I can't remember if the Windows packages are similar.
In reply to Tim Hunt

Re: database on local install - how do I get to it?

Mary Cooch發表於
Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Testers的相片 Translators的相片
It does have a whole folder phpmyadmin in data in mysql but when I type the address above I just get object not found 傷心
In reply to Mary Cooch

Re: database on local install - how do I get to it?

Jon Witts發表於
Plugin developers的相片 Testers的相片
What are you running your local Moodle on Mary? Mac, Windows or Linux?
In reply to Jon Witts

Re: database on local install - how do I get to it?

Mary Cooch發表於
Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Testers的相片 Translators的相片
Windows (yes, I know but, hey..)
In reply to Mary Cooch

Re: database on local install - how do I get to it?

Jon Witts發表於
Plugin developers的相片 Testers的相片
Go here to download the latest PHPMyAdmin http://www.phpmyadmin.net/home_page/downloads.php then hopefully this doc should help you get it setup: http://www.phpmyadmin.net/documentation/#quick_install

Personally I prefer typing "sudo apt-get install phpmyadmin" on Ubuntu but there you go 眨眼

Jon
In reply to Jon Witts

Re: database on local install - how do I get to it?

Jon Witts發表於
Plugin developers的相片 Testers的相片
In reply to Jon Witts

Re: database on local install - how do I get to it?

Mary Cooch發表於
Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Testers的相片 Translators的相片
I will give it a go now!
In reply to Mary Cooch

Re: database on local install - how do I get to it?

Jon Witts發表於
Plugin developers的相片 Testers的相片
Cool! Let us know how you get on!
In reply to Jon Witts

Re: database on local install - how do I get to it?

Mary Cooch發表於
Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Testers的相片 Translators的相片
Well -I failed on the first hurdle - tried this one http://www.trap17.com/index.php/installing-phpmyadmin-local-machine-windows_t63977.html
and it said extract to htdocs -where's that? Do they mean in my moodle folder? in the server folder? Or in one of the folder within there?
In reply to Mary Cooch

Re: database on local install - how do I get to it?

Jon Witts發表於
Plugin developers的相片 Testers的相片
Are you using Apache or IIS for your web server?
In reply to Jon Witts

Re: database on local install - how do I get to it?

Mary Cooch發表於
Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Testers的相片 Translators的相片
apache. I just downloaded the moodle 2 for windows from the downloads tab -thought it had everything in it already you see - then I broke it so I'm trying to access the database to fix it
In reply to Mary Cooch

Re: database on local install - how do I get to it?

Jon Witts發表於
Plugin developers的相片 Testers的相片
Umm so you are using the windows complete package.. I am downloading it now but I will have to try installing that on my Windows OS to see how you can go about installing phpmyadmin in that....
In reply to Jon Witts

Re: database on local install - how do I get to it?

Mary Cooch發表於
Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Testers的相片 Translators的相片
thanks. I mean - if the worst came to the worst I could always delete and start again but then - like the pupils- I won't have learned anything,as this is my weakest area of Moodle. Not able to do much today (unless my mobile broadband dongle works on the train) as I am off to BETTsmile
In reply to Mary Cooch

Re: database on local install - how do I get to it?

Helen Foster發表於
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片
Hi Mary,

XAMPP for Windows comes with phpmyadmin so there should be no need to install it again. I don't know why http://localhost/phpmyadmin/ doesn't work for you. Perhaps you can ask for help in the Apache Friends Support forum discussion PhpMyAdmin is unreachable.
In reply to Helen Foster

Re: database on local install - how do I get to it?

Mary Cooch發表於
Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Testers的相片 Translators的相片
Hi Helen - yes, I though it ought to work "out of the box" especially as I've got a phpmyadmin folder. I'll keep investigating.
In reply to Mary Cooch

Re: database on local install - how do I get to it?

Mary Cooch發表於
Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Testers的相片 Translators的相片
Ok -I have definitely missed something out somewhere - I deleted my last install and started all over again:
Moodle 2 dev package - extracted it
clicked on start moodle.exe
just agreed to whatever it said, added my details, password etc
I now have a working Moodle 2 again on local host
but the phpmyadmin is still object not found
was I meant to do something in addition to all this?
(yes, I know - I should have read up on it but I like to just dive straight in!)
In reply to Mary Cooch

Re: database on local install - how do I get to it?

Mauno Korpelainen發表於

Mary - you have not missed anything...

Moodle 2 is using a modified folder structure for files of XAMPP in complete Windows package.

I have used myself in my local Windows Vista (test PC) the original XAMPP found from http://www.apachefriends.org/en/xampp-windows.html

(easy to use installer package) and standard packages from moodle.org (not complete packages). Using that original XAMPP phpmyadmin is found from http://127.0.0.1/phpmyadmin/ or http://localhost/phpmyadmin and the usual place for XAMPP is C:\xampp (then localhost is in C:\xampp\htdocs)

In complete packages modified versions of phpmyadmin used to be found from administration menu (server...) but I have not checked if it still is there in moodle 2.0.

評比平均分數:Useful (1)
In reply to Mauno Korpelainen

Re: database on local install - how do I get to it?

Colin Fraser發表於
Documentation writers的相片 Testers的相片
Htdocs is the standard Apache document root. In a Xampp install, the root is usually changed to path/moodle, in mine it reads:
DocumentRoot "G:/Moodle20/server/moodle"
This is about line 178 in the httpd.conf file.

Just reading your comments here, Mary et. al. got me curious so I downloaded and installed the Xampp installation, installed it and have been looking at it. It looks like the phpMyAdmin is not present, in my download, but it is hard to tell, it does not appear in the moodle/admin folder and have not found it anywhere under the phpMyAdmin foldername. There is a phpMyAdmin.css.php file in the mySQL folder in moodle/Admin.

However, it seems to be present as the database is displaying as it should when I click the database link. Clearly it has been more thoroughly integrated than in 1.9. But, having said that, it may be possible that it is accessing it from the 1.9 install, there is no return header in the top frame of the phpMyAdmin window.

If you want access to the tables direct, then in
C:\Documents and Settings\All Users\Application Data\MySQL\MySQL Server 5.1\data\(databasename)=mdle2

(mdle2 was the name of the database I used to not interfere with my 1.9 installations.)

Good luck with it..



In reply to Colin Fraser

Re: database on local install - how do I get to it?

Mary Cooch發表於
Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Testers的相片 Translators的相片
Well you have completely gone over my head Colin I'm sorry -this as far as I got (I just put everything on my desktop smile)
file:///C:/Users/user/Desktop/MoodleWindowsInstaller-latest/server/mysql/data/moodle
and I can see loads but can't actually open anything 傷心


In reply to Mary Cooch

Re: database on local install - how do I get to it?

Colin Fraser發表於
Documentation writers的相片 Testers的相片
Sorry, my assumption was that you were using an XP laptop. duh!!!

OK, if you can see a database link in the Site Administration > Server > Database then phpMyAdmin is installed. If you cannot then phpMyAdmin is not installed.

Assuming that php is connectionless and there does not need to be any specialized installation process of a plugin, then you should be able to install phpMyAdmin into your Moodle 2.0.

You can download it from Modules and Plugins, and install it simply by unzipping it to the moodle/admin folder. You should then see the Site Administration > Server > Database link.

EDIT: Well, that is how it has worked for me in the past, but my new Xampp/Moodle2.0 install looks like it has it native.


In reply to Colin Fraser

Re: database on local install - how do I get to it?

Mary Cooch發表於
Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Testers的相片 Translators的相片
I've installed it on a Vista laptop .
Right - now I am totally confused -I went to site admin>server>database
and there is my phpmyadmin that I understand (sort of) that I have been looking for all over elsewhere - what's it doing in there?? I think I'll give up on this Moodle lark -it's too complicated mixed
oh and this is the url http://localhost/admin/mysql/frame.php

Anyway.. now I know where it is, I can break my Moodle 2 again!big grin
In reply to Mary Cooch

Re: database on local install - how do I get to it?

Colin Fraser發表於
Documentation writers的相片 Testers的相片
Always good practice to break it, then spend time fixing it...big grin

Have a look in the top part of the frame, mine did not display the link back to the front page.. real odd..

Where do I post comments and complaints and such about Moodle 2.0, btw..?