Documentation
- Mamp For Ubuntu
- Mamp For Ubuntu Download
- Mamp For Ubuntu Mac
- Mamp For Ubuntu Windows
- Mamp For Ubuntu Latest
- Getting Started
- Reference
- Bundles
- Contribute
This page describes how to connect to the MySQL Server of MAMP or XAMPP running on the same computer as Sequel Pro. If you want to connect to MAMP/XAMPP running on a different computer, please see Connecting to a MySQL Server on a Remote Host.
MAMP
Enable snaps on Ubuntu and install MAME Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully. Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions. The below assumes your MAMP installation directory is C:MAMP. For MAMP: With Windows Explorer go to folder C:MAMPdbmysql First backup all files that begin with mysql-bin., then delete them (including mysql-bin.index file.) Then try starting all MAMP servers again (wait for MySQL to turn light on). After that stop all MAMP servers again.
Connect to MAMP via a unix socket
This is the recommended way of connecting to MAMP.
In the Sequel Pro connection dialog, choose a socket connection.
(0.9.7 and earlier versions: Enter /Applications/MAMP/tmp/mysql/mysql.sock in the socket field. In 0.9.8 and later versions, this socket path will be checked automatically if the field is left empty.)
Type root into the username field. The default password is also root. Optionally enter a name for the connection.
Make sure that MAMP is running and click connect.

Connect to MAMP via a standard TCP/IP connection
You can also connect via a TCP/IP connection.
Enter 127.0.0.1 for the Host. Enter root for the username and for the password. The default MySQL port used by MAMP is 8889.
Just like with MAMP, you can also connect to XAMPP via a socket connection or a standard connection. Only the default settings are a little bit different:
Connect to XAMPP via a unix socket
(0.9.7 and earlier versions: The unix socket for XAMPP is /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock. In 0.9.8 and later versions, this socket path will be checked automatically if the field is left empty.)
Use root as username, and leave the password field blank.
Connect to XAMPP via a standard TCP/IP connection
Type 127.0.0.1 into the host field. Since XAMPP uses the standard MySQL port 3306, you can leave the port field blank. The user name is root, the default password is blank.
LAMP installations (Linux + Apache + MySQL + PHP/Perl/Python) are a popular setup for Ubuntu servers. There is a plethora of Open Source applications written using the LAMP application stack. Some popular LAMP applications are Wiki’s, Content Management Systems, and Management Software such as phpMyAdmin.
One advantage of LAMP is the substantial flexibility for different database, web server, and scripting languages. Popular substitutes for MySQL include PostgreSQL and SQLite. Python, Perl, and Ruby are also frequently used instead of PHP. While Nginx, Cherokee and Lighttpd can replace Apache.

The fastest way to get started is to install LAMP using tasksel. Tasksel is a Debian/Ubuntu tool that installs multiple related packages as a co-ordinated “task” onto your system. To install a LAMP server:
At a terminal prompt enter the following command:
After installing it you’ll be able to install most LAMP applications in this way:
Download an archive containing the application source files.
Unpack the archive, usually in a directory accessible to a web server.
Depending on where the source was extracted, configure a web server to serve the files.
Configure the application to connect to the database.
Run a script, or browse to a page of the application, to install the database needed by the application.
Once the steps above, or similar steps, are completed you are ready to begin using the application.
A disadvantage of using this approach is that the application files are not placed in the file system in a standard way, which can cause confusion as to where the application is installed. Another larger disadvantage is updating the application. When a new version is released, the same process used to install the application is needed to apply updates.
Fortunately, a number of LAMP applications are already packaged for Ubuntu, and are available for installation in the same way as non-LAMP applications. Depending on the application some extra configuration and setup steps may be needed, however.
This section covers how to install some LAMP applications.
phpMyAdmin is a LAMP application specifically written for administering MySQL servers. Written in PHP, and accessed through a web browser, phpMyAdmin provides a graphical interface for database administration tasks.
Installation
Before installing phpMyAdmin you will need access to a MySQL database either on the same host as that phpMyAdmin is installed on, or on a host accessible over the network. For more information see MySQL documentation. From a terminal prompt enter:
At the prompt choose which web server to be configured for phpMyAdmin. The rest of this section will use Apache2 for the web server.
In a browser go to http://servername/phpmyadmin
, replacing servername with the server’s actual hostname. At the login, page enter root for the username, or another MySQL user, if you have any setup, and enter the MySQL user’s password.
Once logged in you can reset the root password if needed, create users, create/destroy databases and tables, etc.
Configuration
Mamp For Ubuntu
The configuration files for phpMyAdmin are located in /etc/phpmyadmin
. The main configuration file is /etc/phpmyadmin/config.inc.php
. This file contains configuration options that apply globally to phpMyAdmin.
To use phpMyAdmin to administer a MySQL database hosted on another server, adjust the following in /etc/phpmyadmin/config.inc.php
:
Note
Replace db_server with the actual remote database server name or IP address. Also, be sure that the phpMyAdmin host has permissions to access the remote database.
Once configured, log out of phpMyAdmin and back in, and you should be accessing the new server.
The config.header.inc.php
and config.footer.inc.php
files in /etc/phpmyadmin
directory are used to add a HTML header and footer to phpMyAdmin.

Another important configuration file is /etc/phpmyadmin/apache.conf
, this file is symlinked to /etc/apache2/conf-available/phpmyadmin.conf
, and, once enabled, is used to configure Apache2 to serve the phpMyAdmin site. The file contains directives for loading PHP, directory permissions, etc. From a terminal type:
For more information on configuring Apache2 see this documentation.
References
The phpMyAdmin documentation comes installed with the package and can be accessed from the phpMyAdmin Documentation link (a question mark with a box around it) under the phpMyAdmin logo. The official docs can also be access on the phpMyAdmin site.
Another resource is the phpMyAdmin Ubuntu Wiki page.
Wordpress is a blog tool, publishing platform and CMS implemented in PHP and licensed under the GNU GPLv2.
Installation
To install WordPress, run the following comand in the command prompt:
You should also install apache2 web server and mysql server. For installing apache2 web server, please refer to Apache2 documentation. For installing mysql server, please refer to MySQL documentation.
Configuration
For configuring your first WordPress application, configure an apache site. Open /etc/apache2/sites-available/wordpress.conf
and write the following lines:
Enable this new WordPress site
Once you configure the apache2 web server and make it ready for your WordPress application, you should restart it. You can run the following command to restart the apache2 web server:
To facilitate multiple WordPress installations, the name of this configuration file is based on the Host header of the HTTP request. This means that you can have a configuration per VirtualHost by simply matching the hostname portion of this configuration with your Apache Virtual Host. e.g. /etc/wordpress/config-10.211.55.50.php, /etc/wordpress/config-hostalias1.php, etc. These instructions assume you can access Apache via the localhost hostname (perhaps by using an ssh tunnel) if not, replace /etc/wordpress/config-localhost.php with /etc/wordpress/config-NAME_OF_YOUR_VIRTUAL_HOST.php.
Once the configuration file is written, it is up to you to choose a convention for username and password to mysql for each WordPress database instance. This documentation shows only one, localhost, example.
Now configure WordPress to use a mysql database. Open /etc/wordpress/config-localhost.php
file and write the following lines:
Mamp For Ubuntu Download
Now create this mysql database. Open a temporary file with mysql commands wordpress.sql
and write the following lines:
Mamp For Ubuntu Mac

Execute these commands.
Mamp For Ubuntu Windows
Your new WordPress can now be configured by visiting http://localhost/blog/wp-admin/install.php. (Or http://NAME_OF_YOUR_VIRTUAL_HOST/blog/wp-admin/install.php if your server has no GUI and you are completing WordPress configuration via a web browser running on another computer.) Fill out the Site Title, username, password, and E-mail and click Install WordPress.
Note the generated password (if applicable) and click the login password. Your WordPress is now ready for use.
References
Mamp For Ubuntu Latest
Last updated 1 year, 20 days ago. Help improve this document in the forum.
