You do not want to change DBINSTANCE
. All that does is change what instance is the "main" one for your OS. And you only have one instance from what I understand (named db2 I believe). I'm betting this has more to do with permissions as you are attempting to run db2sampl, which I believe creates the sample database if I remember correctly. Instance owner should be able to run this without any issues.
If I were you, I would run db2sampl as instance owner and then perform your necessary GRANT
s for db2-user once the database is there.
MySQL installs the database engine. Which you run and start from the terminal/bash/shell.
You will need to download the MySQL workbench for a GUI.
phpmMyAdmin is another choice which runs in the browser.
Sounds like you have MySQL installed. You just need to setup a GUI now.
Q1. why until now there's nothing in the applications? I can't see any item or folder like mysql there. is it that every time i want to run mysql, i have to mount the installation package?
A1: The dB engine is installed you have to start and stop it using terminal window.
shell> sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
shell> sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop
Q2. what does MySQLStartupItem.pkg installed?
A2: The Startup Item installation adds a variable MYSQLCOM=-YES- to the system configuration file /etc/hostconfig.
Q3. Is there any client side tools inside the installation package? I mean, for example, Microsoft SQL Server for Windows, there are Microsoft SQL Server; and there are Microsoft SQL Server Management Studio, which serves as a client tool to browse databases and doing queries; also, if i download "Microsoft SQL Server Express with Tools" package, it will install both. does "mysql-5.5.28-osx10.6-x86_64.dmg" contains only the server, or also a client tool inside?
A3: Lots. phpMyAdmin for browser. And MySQLWorkBench equal to SQL Server Management Studio (Browse dB's and other objects)
Best Answer
The best thing to do is to export the databases from the MAMP server and import them to your new database server.
Here's a guide with MySQL dump and restore: http://www.patrickpatoray.com/?Page=30