Hi there,
I am attempting my first upgrade of my drupal site 5.1 to drupal 6.2. I have followed best practice instructions and set up a local testing environment to do the upgrade on a test site first. Have set up MAMP which has installed php, mysql server and apache server onto my 10.3 OS for Mac computer. All working well however I do not know how to access the mysql database via the terminal. I need to have terminal access because when I tried to import the database (I exported the live database from remote server onto my desktop) into the local mysql environment via phpmyadmin the browser timed out. If I kept refreshing it got there eventually, importing the complete database, but this seems like a process prone to error to me?
The instructions on the homepage of MAMP for starting mysql did not work for me. They were two ways suggested as follows:
To connect to the MySQL Server from your own scripts use the following connection parameters:
Host: localhost
[Port: 8889]
User: root
Password: root
Example:
$link = mysql_connect('localhost:8889', 'root', 'root');
or you can connect using an UNIX Socket:
Socket: /Applications/MAMP/tmp/mysql/mysql.sock
User: root
Password: root
Example:
http://drupal.org/project/issues/infrastructure
$link = mysql_connect(':/Applications/MAMP/tmp/mysql/mysql.sock', 'root', 'root');