Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

How can I connect to a local mySQL database on MAC?

  • 25-06-2007 9:34pm
    #1
    Registered Users, Registered Users 2 Posts: 1,629 ✭✭✭


    Hi, I have installed MAMP and have successfully executed a few PHP scripts on my local machine.

    Now I have created a database called "database" and a table called "contacts" and set up the various fields using PHPmyAdmin.

    I now want to add information to the table "contacts"

    How can I do this?

    Can I do it from inside the web browser with MAMP, if so how.


    I know that this can be done from the terminal but I don't know how.


    Here is a screenshot of the information given on my MAMP homepage at "localhost:8080....."

    Picture-1.jpg

    Can anyone help me out on this at all?


Comments

  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Doesn't it say it right there... localhost:8889? Administer using phpMyAdmin? Which is given to you with a hyperlink, it seems...


  • Registered Users, Registered Users 2 Posts: 1,629 ✭✭✭NullZer0


    Doesn't it say it right there... localhost:8889? Administer using phpMyAdmin? Which is given to you with a hyperlink, it seems...


    Nope, thats not a Hyperlink.


    Also, that code does not work from within the terminal.


  • Registered Users, Registered Users 2 Posts: 3,514 ✭✭✭Rollo Tamasi


    Did you create your DB in phpmyadmin?
    Using phpmyadmin is the easiest way to add/edit to a local db. The below link should bring up the required screen.
    http://localhost:8888/MAMP/frame.php?src=%2FphpMyAdmin%2F%3Flang%3Den-iso-8859-1&language=English

    Failling that, just go into your Applications Folder > MAMP and launch the MAMP icon. Then click on phpmyadmin from the console.


  • Registered Users, Registered Users 2 Posts: 35,524 ✭✭✭✭Gordon


    phpMyadmin is the place to be with all that database malarky. If in doubt - randomly click some links.


  • Registered Users, Registered Users 2 Posts: 1,629 ✭✭✭NullZer0


    Gordon wrote:
    phpMyadmin is the place to be with all that database malarky. If in doubt - randomly click some links.
    Yeah I tried a few links alright, but not much luck!


  • Advertisement
Advertisement