How to start MySQL with –skip-grant-tables?

I had the same problem as the title of this question, so incase anyone else googles upon this question and wants to start MySql in ‘skip-grant-tables’ mode on Windows, here is what I did. Stop the MySQL service through Administrator tools, Services. Modify the my.ini configuration file (assuming default paths) C:\Program Files\MySQL\MySQL Server 5.5\my.ini or … Read more

How can I restore the MySQL root user’s full privileges?

If the GRANT ALL doesn’t work, try: Stop mysqld and restart it with the –skip-grant-tables option. Connect to the mysqld server with just: mysql (i.e. no -p option, and username may not be required). Issue the following commands in the mysql client: UPDATE mysql.user SET Grant_priv=’Y’, Super_priv=’Y’ WHERE User=”root”; FLUSH PRIVILEGES; After that, you should … Read more

Make Inno Setup installer request privileges elevation only when needed

Inno Setup 6 has a built-in support for non-administrative install mode. Basically, you can simply set PrivilegesRequiredOverridesAllowed: [Setup] PrivilegesRequiredOverridesAllowed=commandline dialog Additionally, you will likely want to use the auto* variants of the constants. Notably the {autopf} for the DefaultDirName. [Setup] DefaultDirName={pf}\My Program The following is my (now obsolete) solution for Inno Setup 5, based on … Read more