Browsed by
Month: September 2017

Github “fatal: remote origin already exists”

Github “fatal: remote origin already exists”

As the error message indicates, there is already a remote configured with the same name. So you can either add the new remote with a different name or update the existing one if you don’t need it: To add a new remote, called for example github instead of origin (which obviously already exists in your system), do the following: $ git remote add github git@github.com:ppreyer/first_app.git Remember though, everywhere in the tutorial you see “origin” you should replace it with “github”. For example $ git push origin master should now…

Read More Read More

Laravel : Specified key was too long error

Laravel : Specified key was too long error

Laravel 5.4 or later  made a change to the default database character set, and it’s now utf8mb4 which includes support for storing emojis. This only affects new applications and as long as you are running MySQL v5.7.7 and higher you do not need to do anything. For those running MariaDB or older versions of MySQL you may hit this error when trying to run migrations: [Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is…

Read More Read More