Mamp Pro Restore root user / uninstall - mamp

Hi in Mamp Pro I accidentally removed the root account, so I now cannot use mysql to create new databases and all other operations.
This is the error I get when startng mysql via mamp pro:
Checking MySQL databases failed
Error message:
/Applications/MAMP/Library/bin/mysqlcheck: Got error: 1044: Access denied for user 'root'#'localhost' to database 'mysql' when selecting the database
I have tried to reset to factory settings but that hasn't helped.
Basically in the users overview in Phpmyadmin, I just get a yellow box saying "No privileges".
I also tried to uninstall Mamp Pro, but when I tick the uninstaller's checkboxes and hit uninstall, I get the following error:
Error
The privileged action failed.
Help would be really appreciated since I cannot do any work like this.

MAMP evidently creates some configuration files that can't be wiped via the uninstaller. I was able to circumvent the The privileged action failed error and completely uninstall MAMP Pro using the following steps:
Delete the appsolute directory from /Library/Application Support , which contains configuration files that are created upon MAMP Pro installation
Delete the file hosts.mamp.bak in /etc, which is the MAMP hosts backup file
Delete the MAMP directory from /Applications/MAMP
Open the MAMP Pro Uninstaller, check all five options, and click to uninstall
This should completely wipe the existing MAMP/MAMP Pro installation and enable a clean, fresh install. You may need to restart your computer to get Apache running after re-installation.

Related

MAMP 4.2 MySQL Server Not Starting

I recently upgraded from MAMP 4.1.1 to MAMP 4.2 on my Mac running MacOS 10.12.6. After upgrading, MAMP 4.2 will not start the MySQL server. Additionally, there is not an option to Stop servers. I see a green box to the right of Apache Server along with the the ability to select Preferences and Start Servers. Open WebStart page is grayed out.
I followed the instructions on MAMP mysql server won't start. No mysql processes are running to delete the ib_logfile0 and ib_logfile1 files from MAMP/db/mysql56, but that did not work. In addition to the ib_logfiles, I also deleted ibdata1 followed by all of the contents of mysql56, but neither of those worked.
Lastly, I do not see a mysqld running in Activity Monitor.
Any help in restoring my MAMP functionality is greatly appreciated. Thank you in advance for any help.
I had the same problem and tried the same things which didn't solved it.
What solved it for me is I tried starting mySQL in terminal manually in Terminal, here:
/Applications/MAMP/bin/startMysql.sh
I saw this error in Terminal prompt:
mysqld_safe error: log-error set to '/Applications/MAMP/logs/mysql_error_log.err', however file don't exists. Create writable for user 'mysql'.
So I manually create a file '/Applications/MAMP/logs/mysql_error_log.err' and retry startMysql.sh, mySQL then started with no problem.
Back to MAMP app console, I can also start/stop servers and 'Open WebStart Page' with no problem now.

Odoo: Internal Server Error

I've installed Odoo 9.0 on Ubuntu 14.04, and I've activated the developer mode to install module from App Store. Every app I try to install that doesn't belong to the 31 apps offered by default without accessing developer mode, I get this error:
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
It looks like this happens only on the local installation. i tried to install the Barcode app in online trial, and I encoutered no problems.
If anyone may help me, I'll be eternaly grateful.
Anyway, I'm pretty sure that the app on the "App store" provided in Odoo (not the ones that is possible to download in zip and add to addons), are only for the enterprise version.
I tried in a lot of computers and different installation with no luck.
Still happenning as of today. I've been able to manually install the module I wanted:
Go to the app store web site: https://apps.openerp.com/apps/modules
Search for and download your module
unzip the archive in the addons directory of your odoo installation
Go in odoo, settings, update modules list
you can then look for it in Local Modules. You may need to remove all filters. I've done this in v8.

Internal Server Error while Running Odoo 8.0 Openerp

First i installed Odoo 9.0-20160923 openerp on my windows it installs PostgreSql and Odoo files along with it successfully and it was perfectly working too, for some reason i didn't want this version so i just uninstalled Odoo 9.0-20160923
successfully from Program and Features and didn't uninstall the PostgreSql and then hard delete Odoo 9.0-20160923 directory from C:\Program Files (x86)\Odoo 9.0-20160923 too, Afterwards I successfully installed the Odoo 8.0 which only installs the Odoo files not the PostgreSql files now When i run the Openerp from browser it shows me the Internal Server Error as you may see in the attached image what is the actual problem Kindly suggest appropriate solution to this so i can manage to run this perfectly thankyou.
I resolved this issue by getting the PostgreSQL setup and runs the uninstall process which removes all the files then i un-install the Odoo 8.0 too then i made the fresh installation of Odoo 8.0 which then ask me to install the PostgreSQL database along with it now every thing is working fine. Actually issue was originated due to the missing PostgreSQL database as i didn't un-install it properly instead i hard deleted the entire Odoo 9.0-20160923 directory in which PostgreSQL database was located which cause it to damage.

MAMP Pro 4 and Sophos Warning about Adminer Database Manager

I have been using Sophos Anti-Virus on the Mac for several years now with good results. Recently when attempting to download the new MAMP Pro 4.x, I received a Sophos alert that the MAMP installer contains the Adminer Database Manager, which it identifies as known Adware and PUA.
Has anyone experienced a similar warning, and is there any reason for concern about this warning?
The only real information I can find about Adminer is this:
http://philipdowner.com/2012/01/using-adminer-with-mamp-on-mac-os-x/
This post indicates that Adminer is some type of script designed to be an alternative to PHPMyAdmin.
Can I just remove Adminer after installing?
-- Lee
I got the same warning and also Google Chrome flags the MAMP 4 PKG file as having a virus. It appears that the official download of Adminer throws the same warning by Sophos (from their website):
https://www.adminer.org/
So, this issue is NOT related to MAMP itself but rather the Adminer application. I think it's a false positive since from what I've seen Sophos is the only antivirus software that flags adminer.php, however you CAN remove the file Applications/MAMP/bin/adminer.php without affecting functionality of MAMP, since as you point out it is just a phpMyAdmin alternative. I simply deleted it for now.
That said, if you upgrade MAMP the file will likely be replaced.

Unable to install PostgreSQL on dev machine

I'm trying to install PGSQL 8.3 (and 8.4 and 9.0) on my work laptop. At the end of the installation, the installer complains it can't init the cluster. Investigating more, I noticed that the service is not even installed. I did use the "OneClick Installer", not the pgAdmin stand alone install. I tried installing as Administrator and as a regular user. In all the cases, the pgsql system account is created and the files copied, but the service is not.
I successfully installed PGSQL many times on my home PC. Both the laptop and desktop use Windows 7 64 bits (former is Professional, later is Ultimate). The only differences I can think of are that the laptop is part of an Active Directory and uses McAfee, while the desktop is only on a workgroup and uses Windows Security Essentials.
Are you sure the postgres user is allowed to create files in the data directory? The installer defaults to putting the data directory where the binaries are installed (e.g. c:\Program Files) which is usually not writeable by a regular user (and I never understood why the installer contains such an idiotic default).
McAffee could be an issue though. I have heard several stories about virus scanners infering with the Postgres (or other DBMS). Can you turn McAffee off - at least for the data directory?
Another problem could be that the installer is not able to create the postgres windows user (that is used to run the service).
If you are a local administrator on that machine, try to create the user before the installer does it. The installer will then not try to create the user account.
As a last ressort, you could install PostgreSQL without the installer (this is what I usually do).
Download the ZIP file from http://www.enterprisedb.com/products-services-training/pgbindownload
Unzip it into a convenient location
Run initdb (make sure you do that using the postgres user account - the one that is used to run the service later!)
run pg_ctlr register to create the Windows service
If any of those steps fails you'll see a proper error message which is not always the case with the installer.
Anti-virus is a well known issue:
http://wiki.postgresql.org/wiki/Running_&_Installing_PostgreSQL_On_Native_Windows#Antivirus_software
PostgreSQL connection problems
(answer is from one the core developers)
Postgresql 8.4 and BitDefender 11
With earlier versions of PostgreSQL, I found I had to delete the user "postgres" before reinstalling would work. Not sure what versions had that problem, though.